aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sunrpc/debug.h')
-rw-r--r--include/linux/sunrpc/debug.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
index 43f38ee9668c..835339707094 100644
--- a/include/linux/sunrpc/debug.h
+++ b/include/linux/sunrpc/debug.h
@@ -53,9 +53,40 @@ extern unsigned int nlm_debug;
53/* 53/*
54 * Sysctl interface for RPC debugging 54 * Sysctl interface for RPC debugging
55 */ 55 */
56
57struct rpc_clnt;
58
56#if IS_ENABLED(CONFIG_SUNRPC_DEBUG) 59#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
57void rpc_register_sysctl(void); 60void rpc_register_sysctl(void);
58void rpc_unregister_sysctl(void); 61void rpc_unregister_sysctl(void);
62int sunrpc_debugfs_init(void);
63void sunrpc_debugfs_exit(void);
64int rpc_clnt_debugfs_register(struct rpc_clnt *);
65void rpc_clnt_debugfs_unregister(struct rpc_clnt *);
66#else
67static inline int
68sunrpc_debugfs_init(void)
69{
70 return 0;
71}
72
73static inline void
74sunrpc_debugfs_exit(void)
75{
76 return;
77}
78
79static inline int
80rpc_clnt_debugfs_register(struct rpc_clnt *clnt)
81{
82 return 0;
83}
84
85static inline void
86rpc_clnt_debugfs_unregister(struct rpc_clnt *clnt)
87{
88 return;
89}
59#endif 90#endif
60 91
61#endif /* _LINUX_SUNRPC_DEBUG_H_ */ 92#endif /* _LINUX_SUNRPC_DEBUG_H_ */