2003-09-12 18:31:45

by Stephen Hemminger

[permalink] [raw]
Subject: [PATCH] fix build problems in nfs w/o proc_fs on 2.6.0-test5

NFS won't build w/o CONFIG_PROC_FS. Looks like typo's (or a C++ programmer)
in stats.h

diff -Nru a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h
--- a/include/linux/sunrpc/stats.h Fri Sep 12 11:16:32 2003
+++ b/include/linux/sunrpc/stats.h Fri Sep 12 11:16:32 2003
@@ -64,11 +64,12 @@
static inline void rpc_proc_unregister(const char *p) {}
static inline void rpc_proc_zero(struct rpc_program *p) {}

-static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s
- struct file_operations *) { return NULL; }
+static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s,
+ struct file_operations *f) { return NULL; }
static inline void svc_proc_unregister(const char *p) {}

-static inline void svc_seq_show(struct seq_file *, const struct svc_stat *) {}
+static inline void svc_seq_show(struct seq_file *seq,
+ const struct svc_stat *st) {}

#define proc_net_rpc NULL



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs