patch-2.1.7 linux/drivers/char/misc.c

Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/ftape/kernel-interface.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.6/linux/drivers/char/misc.c linux/drivers/char/misc.c
@@ -184,12 +184,14 @@
 #include <linux/symtab_end.h>
 };
 
+#if defined(CONFIG_PROC_FS) && !defined(MODULE)
 static struct proc_dir_entry proc_misc = {
 	0, 4, "misc",
 	S_IFREG | S_IRUGO, 1, 0, 0,
 	0, NULL /* ops -- default to array */,
 	&proc_misc_read /* get_info */,
 };
+#endif
 
 int misc_init(void)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov