patch-2.2.0-pre2 linux/fs/nfsd/stats.c

Next file: linux/fs/nfsd/vfs.c
Previous file: linux/fs/nfsd/nfssvc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/fs/nfsd/stats.c linux/fs/nfsd/stats.c
@@ -13,6 +13,7 @@
  * Copyright (C) 1995, 1996, 1997 Olaf Kirch <okir@monad.swb.de>
  */
 
+#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/proc_fs.h>
@@ -26,6 +27,7 @@
 struct nfsd_stats	nfsdstats;
 struct svc_stat		nfsd_svcstats = { &nfsd_program, };
 
+#ifdef CONFIG_PROC_FS
 static int
 nfsd_proc_read(char *buffer, char **start, off_t offset, int count,
 				int *eof, void *data)
@@ -88,3 +90,4 @@
 {
 	svc_proc_unregister("nfsd");
 }
+#endif /* CONFIG_PROC_FS */

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