diff options
Diffstat (limited to 'include/linux/sunrpc/stats.h')
| -rw-r--r-- | include/linux/sunrpc/stats.h | 23 | 
1 files changed, 15 insertions, 8 deletions
| diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h index 5fa0f2084307..680471d1f28a 100644 --- a/include/linux/sunrpc/stats.h +++ b/include/linux/sunrpc/stats.h | |||
| @@ -38,8 +38,21 @@ struct svc_stat { | |||
| 38 | rpcbadclnt; | 38 | rpcbadclnt; | 
| 39 | }; | 39 | }; | 
| 40 | 40 | ||
| 41 | void rpc_proc_init(void); | 41 | struct net; | 
| 42 | void rpc_proc_exit(void); | 42 | #ifdef CONFIG_PROC_FS | 
| 43 | int rpc_proc_init(struct net *); | ||
| 44 | void rpc_proc_exit(struct net *); | ||
| 45 | #else | ||
| 46 | static inline int rpc_proc_init(struct net *net) | ||
| 47 | { | ||
| 48 | return 0; | ||
| 49 | } | ||
| 50 | |||
| 51 | static inline void rpc_proc_exit(struct net *net) | ||
| 52 | { | ||
| 53 | } | ||
| 54 | #endif | ||
| 55 | |||
| 43 | #ifdef MODULE | 56 | #ifdef MODULE | 
| 44 | void rpc_modcount(struct inode *, int); | 57 | void rpc_modcount(struct inode *, int); | 
| 45 | #endif | 58 | #endif | 
| @@ -54,9 +67,6 @@ void svc_proc_unregister(const char *); | |||
| 54 | 67 | ||
| 55 | void svc_seq_show(struct seq_file *, | 68 | void svc_seq_show(struct seq_file *, | 
| 56 | const struct svc_stat *); | 69 | const struct svc_stat *); | 
| 57 | |||
| 58 | extern struct proc_dir_entry *proc_net_rpc; | ||
| 59 | |||
| 60 | #else | 70 | #else | 
| 61 | 71 | ||
| 62 | static inline struct proc_dir_entry *rpc_proc_register(struct rpc_stat *s) { return NULL; } | 72 | static inline struct proc_dir_entry *rpc_proc_register(struct rpc_stat *s) { return NULL; } | 
| @@ -69,9 +79,6 @@ static inline void svc_proc_unregister(const char *p) {} | |||
| 69 | 79 | ||
| 70 | static inline void svc_seq_show(struct seq_file *seq, | 80 | static inline void svc_seq_show(struct seq_file *seq, | 
| 71 | const struct svc_stat *st) {} | 81 | const struct svc_stat *st) {} | 
| 72 | |||
| 73 | #define proc_net_rpc NULL | ||
| 74 | |||
| 75 | #endif | 82 | #endif | 
| 76 | 83 | ||
| 77 | #endif /* _LINUX_SUNRPC_STATS_H */ | 84 | #endif /* _LINUX_SUNRPC_STATS_H */ | 
