aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2023-08-09 22:14:26 +0800
committerChuck Lever <chuck.lever@oracle.com>2023-08-29 17:45:22 -0400
commit899525e892dd165d2bb2e41f9f9d9d82574b31b5 (patch)
treedb35aaf080706cbc22a934c1684a769b9f4b5738
parentSUNRPC: Remove unused declarations (diff)
downloadwireguard-linux-899525e892dd165d2bb2e41f9f9d9d82574b31b5.tar.xz
wireguard-linux-899525e892dd165d2bb2e41f9f9d9d82574b31b5.zip
SUNRPC: Remove unused declaration rpc_modcount()
These declarations are never implemented since the beginning of git history. Remove these, then merge the two #ifdef block for simplification. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
-rw-r--r--include/linux/sunrpc/stats.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h
index d94d4f410507..3ce1550d1beb 100644
--- a/include/linux/sunrpc/stats.h
+++ b/include/linux/sunrpc/stats.h
@@ -43,22 +43,6 @@ struct net;
#ifdef CONFIG_PROC_FS
int rpc_proc_init(struct net *);
void rpc_proc_exit(struct net *);
-#else
-static inline int rpc_proc_init(struct net *net)
-{
- return 0;
-}
-
-static inline void rpc_proc_exit(struct net *net)
-{
-}
-#endif
-
-#ifdef MODULE
-void rpc_modcount(struct inode *, int);
-#endif
-
-#ifdef CONFIG_PROC_FS
struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *);
void rpc_proc_unregister(struct net *,const char *);
void rpc_proc_zero(const struct rpc_program *);
@@ -69,7 +53,14 @@ void svc_proc_unregister(struct net *, const char *);
void svc_seq_show(struct seq_file *,
const struct svc_stat *);
#else
+static inline int rpc_proc_init(struct net *net)
+{
+ return 0;
+}
+static inline void rpc_proc_exit(struct net *net)
+{
+}
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) {}