Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sunrpc: fix stats.h for CONFIG_PROC_FS not enabled

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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

authored by

Randy Dunlap and committed by
Trond Myklebust
cc9f4be5 ec7652aa

+2 -2
+2 -2
include/linux/sunrpc/stats.h
··· 69 69 const struct svc_stat *); 70 70 #else 71 71 72 - static inline struct proc_dir_entry *rpc_proc_register(struct net *, struct rpc_stat *s) { return NULL; } 73 - static inline void rpc_proc_unregisterstruct net *, (const char *p) {} 72 + static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; } 73 + static inline void rpc_proc_unregister(struct net *net, const char *p) {} 74 74 static inline void rpc_proc_zero(struct rpc_program *p) {} 75 75 76 76 static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s,