Hi.

When I compile drivers/scsi/scsi.c in kernel 2.4.0-test6-pre1 without
procfs support I get the following:

drivers/scsi/scsi.c: In function `scsi_dev_init':
drivers/scsi/scsi.c:1517: warning: unused variable `generic'
drivers/scsi/scsi.c: At top level:
drivers/scsi/scsi.c:1472: warning: `proc_scsi_gen_write' declared `static' but never 
defined

The following patch fixes this:

--- linux-240test6pre1-clean/drivers/scsi/scsi.c        Tue Aug  1 17:08:58 2000
+++ linux/drivers/scsi/scsi.c   Wed Aug  2 22:21:47 2000
@@ -1468,8 +1468,10 @@
        spin_unlock_irqrestore(&device_request_lock, flags);
 }
 
+#ifdef CONFIG_PROC_FS
 static int proc_scsi_gen_write(struct file * file, const char * buf,
                               unsigned long length, void *data);
+#endif
 
 void __init scsi_host_no_insert(char *str, int n)
 {
@@ -1514,7 +1516,9 @@
        Scsi_Device *SDpnt;
        struct Scsi_Host *shpnt;
        struct Scsi_Device_Template *sdtpnt;
+#ifdef CONFIG_PROC_FS
        struct proc_dir_entry *generic;
+#endif
 #ifdef FOO_ON_YOU
        return;
 #endif
@@ -1905,7 +1909,7 @@
        free_page((unsigned long) buffer);
        return err;
 }
-#endif
+#endif /*CONFIG_PROC_FS*/
 
 /*
  * Some host adapters that are plugging into other subsystems register

Regards,
-- 
        Rasmus([EMAIL PROTECTED])

"The obvious mathematical breakthrough would be development of an easy way
to factor large prime numbers." 
  -- Bill Gates, The Road Ahead, Viking Penguin (1995)
PS: ObNote: I'm not on this list so please CC me for any desired info.

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to