mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[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>
This commit is contained in:
parent
5929faf333
commit
8ee24023ef
2 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue