]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/scsi/libsas.h
[SCSI] libsas: Fix various sparse complaints
[linux-2.6-omap-h63xx.git] / include / scsi / libsas.h
index e42374cebf957cc68d328b3ebfb3621e2ac7613f..93248cd48373111638b46772a3bbc7a53ddedc73 100644 (file)
@@ -563,7 +563,7 @@ struct sas_task {
        struct work_struct abort_work;
 };
 
-
+extern struct kmem_cache *sas_task_cache;
 
 #define SAS_TASK_STATE_PENDING      1
 #define SAS_TASK_STATE_DONE         2
@@ -573,7 +573,6 @@ struct sas_task {
 
 static inline struct sas_task *sas_alloc_task(gfp_t flags)
 {
-       extern struct kmem_cache *sas_task_cache;
        struct sas_task *task = kmem_cache_zalloc(sas_task_cache, flags);
 
        if (task) {
@@ -590,7 +589,6 @@ static inline struct sas_task *sas_alloc_task(gfp_t flags)
 static inline void sas_free_task(struct sas_task *task)
 {
        if (task) {
-               extern struct kmem_cache *sas_task_cache;
                BUG_ON(!list_empty(&task->list));
                kmem_cache_free(sas_task_cache, task);
        }