public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.5.56] Scsi not compiling without /proc support
@ 2003-01-12 12:00 Paul Rolland
  2003-01-13 20:16 ` Patrick Mansfield
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Rolland @ 2003-01-12 12:00 UTC (permalink / raw)
  To: linux-kernel, axboe; +Cc: rol

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);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-13 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-12 12:00 [PATCH 2.5.56] Scsi not compiling without /proc support Paul Rolland
2003-01-13 20:16 ` Patrick Mansfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox