diff options
Diffstat (limited to 'include/linux/sunrpc/stats.h')
-rw-r--r-- | include/linux/sunrpc/stats.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h index c01ebfa4b..24da571cb 100644 --- a/include/linux/sunrpc/stats.h +++ b/include/linux/sunrpc/stats.h @@ -9,6 +9,7 @@ #ifndef _LINUX_SUNRPC_STATS_H #define _LINUX_SUNRPC_STATS_H +#include <linux/config.h> #include <linux/proc_fs.h> struct rpc_stat { @@ -44,6 +45,7 @@ void rpc_proc_exit(void); 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, @@ -55,4 +57,18 @@ 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 */ |