]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kNFSd:fix build problems in nfs w/o proc_fs on 2.6.0-test5
authorAndrew Morton <akpm@osdl.org>
Wed, 18 Feb 2004 12:50:55 +0000 (04:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 Feb 2004 12:50:55 +0000 (04:50 -0800)
From: NeilBrown <neilb@cse.unsw.edu.au>

From: Stephen Hemminger <shemminger@osdl.org>
Date: Fri, 12 Sep 2003 11:31:06 -0700

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

include/linux/sunrpc/stats.h

index 6fa9781a67b03e42d5cf3e16b047414704d4900f..0d6ed3c8bdc4c75811a3442e2495f70088afdab0 100644 (file)
@@ -64,11 +64,12 @@ static inline struct proc_dir_entry *rpc_proc_register(struct rpc_stat *s) { ret
 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