* [PATCH -next] sunrpc: fix stats.h for CONFIG_PROC_FS not enabled
[not found] <20120123141155.3e6b665ef655e267f25d4e7f@canb.auug.org.au>
@ 2012-01-24 3:28 ` Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2012-01-24 3:28 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-next, LKML, Netdev, David Miller, Andrew Morton,
J. Bruce Fields, Trond Myklebust
From: Randy Dunlap <rdunlap@xenotime.net>
Fix build errors in linux/sunrpc/stats.h when CONFIG_PROC_FS
is not enabled:
- add parameter names to inline functions
- fix placement of '(' in rpc_proc_unregister()
Fixes these errors:
include/linux/sunrpc/stats.h:72:63: error: parameter name omitted
include/linux/sunrpc/stats.h:73:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'net'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
include/linux/sunrpc/stats.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -Naurp linux-next-20120123/include/linux/sunrpc/stats.h~prm_names linux-next-20120123/include/linux/sunrpc/stats.h
--- linux-next-20120123/include/linux/sunrpc/stats.h~prm_names 2012-01-23 19:19:49.000000000 -0800
+++ linux-next-20120123/include/linux/sunrpc/stats.h 2012-01-23 19:20:54.000000000 -0800
@@ -69,8 +69,8 @@ void svc_seq_show(struct seq_file *,
const struct svc_stat *);
#else
-static inline struct proc_dir_entry *rpc_proc_register(struct net *, struct rpc_stat *s) { return NULL; }
-static inline void rpc_proc_unregisterstruct net *, (const char *p) {}
+static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; }
+static inline void rpc_proc_unregister(struct net *net, const char *p) {}
static inline void rpc_proc_zero(const struct rpc_program *p) {}
static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-24 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20120123141155.3e6b665ef655e267f25d4e7f@canb.auug.org.au>
2012-01-24 3:28 ` [PATCH -next] sunrpc: fix stats.h for CONFIG_PROC_FS not enabled Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).