Skip to content

Commit 899525e

Browse files
Yue Haibingchucklever
authored andcommitted
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>
1 parent 07dc19d commit 899525e

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

include/linux/sunrpc/stats.h

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ struct net;
4343
#ifdef CONFIG_PROC_FS
4444
int rpc_proc_init(struct net *);
4545
void rpc_proc_exit(struct net *);
46-
#else
47-
static inline int rpc_proc_init(struct net *net)
48-
{
49-
return 0;
50-
}
51-
52-
static inline void rpc_proc_exit(struct net *net)
53-
{
54-
}
55-
#endif
56-
57-
#ifdef MODULE
58-
void rpc_modcount(struct inode *, int);
59-
#endif
60-
61-
#ifdef CONFIG_PROC_FS
6246
struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *);
6347
void rpc_proc_unregister(struct net *,const char *);
6448
void rpc_proc_zero(const struct rpc_program *);
@@ -69,7 +53,14 @@ void svc_proc_unregister(struct net *, const char *);
6953
void svc_seq_show(struct seq_file *,
7054
const struct svc_stat *);
7155
#else
56+
static inline int rpc_proc_init(struct net *net)
57+
{
58+
return 0;
59+
}
7260

61+
static inline void rpc_proc_exit(struct net *net)
62+
{
63+
}
7364
static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; }
7465
static inline void rpc_proc_unregister(struct net *net, const char *p) {}
7566
static inline void rpc_proc_zero(const struct rpc_program *p) {}

0 commit comments

Comments
 (0)