diff options
author | Darrick J. Wong | 2007-11-05 20:52:14 +0100 |
---|---|---|
committer | James Bottomley | 2008-01-12 01:22:41 +0100 |
commit | 8ee24023ef43c77cdaea1add00e1e45cc4fc3261 (patch) | |
tree | d36320fa2a3ff4e8d98ff17a31cbe6b292c1155f /include/scsi/libsas.h | |
parent | [SCSI] libsas: Convert sas_proto users to sas_protocol (diff) | |
download | kernel-qcow2-linux-8ee24023ef43c77cdaea1add00e1e45cc4fc3261.tar.gz kernel-qcow2-linux-8ee24023ef43c77cdaea1add00e1e45cc4fc3261.tar.xz kernel-qcow2-linux-8ee24023ef43c77cdaea1add00e1e45cc4fc3261.zip |
[SCSI] libsas: Fix various sparse complaints
Annotate sas_queuecommand with locking details, and clean up a few
more sparse warnings about static/non-static declarations.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r-- | include/scsi/libsas.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index e42374cebf95..93248cd48373 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -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); } |