Skip to contentSkip to conversation

Move two declarations from scsi_scan.c into scsi_priv.h

PATCH Bart Van Assche 1 participant 1 message Mar 28, 2016 SCSI

lore
Share & tools
lore
#0 lore raw

Consistency of the declarations that have been moved can only be checked by the compiler if these are present in a header file that is included from both the source file with the definition and the source file with the caller(s). Hence move these two declarations.

---
 drivers/scsi/scsi_priv.h | 2 ++
 drivers/scsi/scsi_scan.c | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/scsi_priv.h +2 -0
index 27b4d0a..68f7f22 100644
@@ -83,6 +83,8 @@ int scsi_noretry_cmd(struct scsi_cmnd *scmd);
 extern int scsi_maybe_unblock_host(struct scsi_device *sdev);
 extern void scsi_device_unbusy(struct scsi_device *sdev);
 extern void scsi_queue_insert(struct scsi_cmnd *cmd, int reason);
+extern void scsi_requeue_run_queue(struct work_struct *work);
+extern void scsi_evt_thread(struct work_struct *work);
 extern void scsi_io_completion(struct scsi_cmnd *, unsigned int);
 extern void scsi_run_host_queues(struct Scsi_Host *shost);
 extern struct request_queue *scsi_alloc_queue(struct scsi_device *sdev);
drivers/scsi/scsi_scan.c +0 -2
index 97074c9..9f021e4 100644
@@ -214,8 +214,6 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
 	struct scsi_device *sdev;
 	int display_failure_msg = 1, ret;
 	struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
-	extern void scsi_evt_thread(struct work_struct *work);
-	extern void scsi_requeue_run_queue(struct work_struct *work);
 
 	sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size,
 		       GFP_ATOMIC);
Signature · 1 line
2.7.3