patch-2.2.0-pre4 linux/net/sunrpc/sysctl.c

Next file: linux/scripts/header.tk
Previous file: linux/net/sunrpc/stats.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre3/linux/net/sunrpc/sysctl.c linux/net/sunrpc/sysctl.c
@@ -38,8 +38,10 @@
 	if (!sunrpc_table_header) {
 		sunrpc_table_header = register_sysctl_table(sunrpc_table, 1);
 #ifdef MODULE
+#ifdef CONFIG_PROC_FS
 		if (sunrpc_table[0].de)
 			sunrpc_table[0].de->fill_inode = rpc_modcount;
+#endif
 #endif
 	}
 			

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