Skip to contentSkip to conversation

scsi compile warning fix

PATCH New Robert Love 1 participant 1 message Oct 29, 2001 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi compile warning fix

drivers/scsi/scsi.c : proc_scsi_gen_write is declared prior to its formal definition. it is not used before its definition, and thus the prior declaration is pointless, generating a compile warning...

attached applies fine to 2.4.13-ac4...

drivers/scsi/scsi.c +0 -3
diff -urN linux-2.4.13-ac2/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -1515,9 +1515,6 @@
 	spin_unlock_irqrestore(&device_request_lock, flags);
 }
 
-static int proc_scsi_gen_write(struct file * file, const char * buf,
-                              unsigned long length, void *data);
-
 void __init scsi_host_no_insert(char *str, int n)
 {
     Scsi_Host_Name *shn, *shn2;

Robert Love