[PATCH] cciss: fix build for PROC_FS disabled

From: Randy Dunlap
Date: Tue Nov 16 2010 - 20:02:39 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

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@xxxxxxxxxx>
---
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);
}

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