scsi: move function declarations to scsi_priv.h
authorBaoyou Xie <baoyou.xie@linaro.org>
Tue, 30 Aug 2016 11:26:00 +0000 (19:26 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 Aug 2016 04:28:32 +0000 (00:28 -0400)
commitd67e8b385fac90c100fb65b9534616769cd3f9b8
treed44d7db0b1664ae371dea81ab4adebf138f5425f
parentee6a8773cfadc1383a6b6ea4e52c0d93ebdf292a
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>
drivers/scsi/scsi_priv.h
drivers/scsi/scsi_scan.c