aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-08-30 07:26:00 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2016-08-31 00:28:32 -0400
commitd67e8b385fac90c100fb65b9534616769cd3f9b8 (patch)
treed44d7db0b1664ae371dea81ab4adebf138f5425f /drivers/scsi/scsi_priv.h
parentee6a8773cfadc1383a6b6ea4e52c0d93ebdf292a (diff)
scsi: move function declarations to scsi_priv.h
We get 2 warnings about global functions without a declaration in the scsi driver when building with W=1: drivers/scsi/scsi_lib.c:467:6: warning: no previous prototype for 'scsi_requeue_run_queue' [-Wmissing-prototypes] drivers/scsi/scsi_lib.c:2609:6: warning: no previous prototype for 'scsi_evt_thread' [-Wmissing-prototypes] In fact, both functions are declared in drivers/scsi/scsi_scan.c but need to move them into scsi_priv.h. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r--drivers/scsi/scsi_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index 57a4b9973320..ff3cde397a8d 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -85,12 +85,14 @@ extern void scsi_device_unbusy(struct scsi_device *sdev);
85extern void scsi_queue_insert(struct scsi_cmnd *cmd, int reason); 85extern void scsi_queue_insert(struct scsi_cmnd *cmd, int reason);
86extern void scsi_io_completion(struct scsi_cmnd *, unsigned int); 86extern void scsi_io_completion(struct scsi_cmnd *, unsigned int);
87extern void scsi_run_host_queues(struct Scsi_Host *shost); 87extern void scsi_run_host_queues(struct Scsi_Host *shost);
88extern void scsi_requeue_run_queue(struct work_struct *work);
88extern struct request_queue *scsi_alloc_queue(struct scsi_device *sdev); 89extern struct request_queue *scsi_alloc_queue(struct scsi_device *sdev);
89extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev); 90extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev);
90extern int scsi_mq_setup_tags(struct Scsi_Host *shost); 91extern int scsi_mq_setup_tags(struct Scsi_Host *shost);
91extern void scsi_mq_destroy_tags(struct Scsi_Host *shost); 92extern void scsi_mq_destroy_tags(struct Scsi_Host *shost);
92extern int scsi_init_queue(void); 93extern int scsi_init_queue(void);
93extern void scsi_exit_queue(void); 94extern void scsi_exit_queue(void);
95extern void scsi_evt_thread(struct work_struct *work);
94struct request_queue; 96struct request_queue;
95struct request; 97struct request;
96extern struct kmem_cache *scsi_sdb_cache; 98extern struct kmem_cache *scsi_sdb_cache;