diff options
Diffstat (limited to 'include/linux/sunrpc/debug.h')
| -rw-r--r-- | include/linux/sunrpc/debug.h | 31 |
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 | |||
| 57 | struct rpc_clnt; | ||
| 58 | |||
| 56 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 59 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
| 57 | void rpc_register_sysctl(void); | 60 | void rpc_register_sysctl(void); |
| 58 | void rpc_unregister_sysctl(void); | 61 | void rpc_unregister_sysctl(void); |
| 62 | int sunrpc_debugfs_init(void); | ||
| 63 | void sunrpc_debugfs_exit(void); | ||
| 64 | int rpc_clnt_debugfs_register(struct rpc_clnt *); | ||
| 65 | void rpc_clnt_debugfs_unregister(struct rpc_clnt *); | ||
| 66 | #else | ||
| 67 | static inline int | ||
| 68 | sunrpc_debugfs_init(void) | ||
| 69 | { | ||
| 70 | return 0; | ||
| 71 | } | ||
| 72 | |||
| 73 | static inline void | ||
| 74 | sunrpc_debugfs_exit(void) | ||
| 75 | { | ||
| 76 | return; | ||
| 77 | } | ||
| 78 | |||
| 79 | static inline int | ||
| 80 | rpc_clnt_debugfs_register(struct rpc_clnt *clnt) | ||
| 81 | { | ||
| 82 | return 0; | ||
| 83 | } | ||
| 84 | |||
| 85 | static inline void | ||
| 86 | rpc_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_ */ |
