patch-2.2.0-pre4 linux/include/linux/sunrpc/stats.h

Next file: linux/include/linux/swapctl.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre3/linux/include/linux/sunrpc/stats.h linux/include/linux/sunrpc/stats.h
@@ -44,6 +44,7 @@
 void			rpc_modcount(struct inode *, int);
 #endif
 
+#ifdef CONFIG_PROC_FS
 struct proc_dir_entry *	rpc_proc_register(struct rpc_stat *);
 void			rpc_proc_unregister(const char *);
 int			rpc_proc_read(char *, char **, off_t, int,
@@ -54,5 +55,19 @@
 int			svc_proc_read(char *, char **, off_t, int,
 					int *, void *);
 void			svc_proc_zero(struct svc_program *);
+
+#else
+
+extern inline void svc_proc_unregister(const char *p) {}
+extern inline struct proc_dir_entry*svc_proc_register(struct svc_stat *s)
+{
+	return NULL;
+}
+
+extern inline int svc_proc_read(char *a, char **b, off_t c, int d, int *e, void *f)
+{
+	return 0;
+}
+#endif
 
 #endif /* _LINUX_SUNRPC_STATS_H */

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