aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/libsas.h4
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 {
563 struct work_struct abort_work; 563 struct work_struct abort_work;
564}; 564};
565 565
566 566extern struct kmem_cache *sas_task_cache;
567 567
568#define SAS_TASK_STATE_PENDING 1 568#define SAS_TASK_STATE_PENDING 1
569#define SAS_TASK_STATE_DONE 2 569#define SAS_TASK_STATE_DONE 2
@@ -573,7 +573,6 @@ struct sas_task {
573 573
574static inline struct sas_task *sas_alloc_task(gfp_t flags) 574static inline struct sas_task *sas_alloc_task(gfp_t flags)
575{ 575{
576 extern struct kmem_cache *sas_task_cache;
577 struct sas_task *task = kmem_cache_zalloc(sas_task_cache, flags); 576 struct sas_task *task = kmem_cache_zalloc(sas_task_cache, flags);
578 577
579 if (task) { 578 if (task) {
@@ -590,7 +589,6 @@ static inline struct sas_task *sas_alloc_task(gfp_t flags)
590static inline void sas_free_task(struct sas_task *task) 589static inline void sas_free_task(struct sas_task *task)
591{ 590{
592 if (task) { 591 if (task) {
593 extern struct kmem_cache *sas_task_cache;
594 BUG_ON(!list_empty(&task->list)); 592 BUG_ON(!list_empty(&task->list));
595 kmem_cache_free(sas_task_cache, task); 593 kmem_cache_free(sas_task_cache, task);
596 } 594 }