[PATCH 2.5.56] Scsi not compiling without /proc support

From: Paul Rolland (rol@witbe.net)
Date: Sun Jan 12 2003 - 07:00:42 EST


Hello,

This quick patch is used to remove calls to functions in charge of
registering/unregistering within /proc when /proc support is not
enabled.

Paul Rolland, rol@as2917.net

diff -uN linux-2.5.56/drivers/scsi/hosts.c
linux-2.5.56-work/drivers/scsi/hosts.c
--- linux-2.5.56/drivers/scsi/hosts.c 2003-01-10 21:11:20.000000000
+0100
+++ linux-2.5.56-work/drivers/scsi/hosts.c 2003-01-12
12:42:59.000000000 +0100
@@ -345,7 +345,9 @@
        shost->hostt->present--;
 
        /* Cleanup proc */
+#ifdef CONFIG_PROC_FS
        scsi_proc_host_rm(shost);
+#endif
 
        kfree(shost);
 }
@@ -456,7 +458,9 @@
 found:
        spin_unlock(&scsi_host_list_lock);
 
+#ifdef CONFIG_PROC_FS
        scsi_proc_host_add(shost);
+#endif
 
        shost->eh_notify = &sem;
        kernel_thread((int (*)(void *)) scsi_error_handler, (void *)
shost, 0);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:40 EST