[PATCH] cciss: fix build for PROC_FS disabled

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Tuesday, November 16, 2010 - 6:00 pm

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix cciss driver for CONFIG_PROC_FS not enabled:

drivers/block/cciss.c:4929: error: 'proc_cciss' undeclared (first use in this function)

The recent patch (which I acked) did not handle this configuration.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/block/cciss.c |    2 ++
 1 file changed, 2 insertions(+)

--- lnx-2637-rc2.orig/drivers/block/cciss.c
+++ lnx-2637-rc2/drivers/block/cciss.c
@@ -4926,8 +4926,10 @@ static void __exit cciss_cleanup(void)
 		}
 	}
 	kthread_stop(cciss_scan_thread);
+#ifdef CONFIG_PROC_FS
 	if (proc_cciss)
 		remove_proc_entry("driver/cciss", NULL);
+#endif
 	bus_unregister(&cciss_bus_type);
 }
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.37-rc2, Linus Torvalds, (Mon Nov 15, 8:12 pm)
Re: Linux 2.6.37-rc2, Zimny Lech, (Tue Nov 16, 1:35 pm)
[PATCH] cciss: fix build for PROC_FS disabled, Randy Dunlap, (Tue Nov 16, 6:00 pm)
Re: [PATCH] cciss: fix build for PROC_FS disabled, Linus Torvalds, (Tue Nov 16, 7:56 pm)
Re: [PATCH] cciss: fix build for PROC_FS disabled, Jens Axboe, (Wed Nov 17, 3:58 am)