summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sunrpc_syms.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-11-17 16:58:04 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-11-24 17:31:46 -0500
commitf895b252d4edf66b2895fb5a7b17a638665f3e1f (patch)
tree84d62f9a9f361be02f3dcf417664ff7682936353 /net/sunrpc/sunrpc_syms.c
parent10b89567db51e143c2f0828839332502916d012d (diff)
downloadop-kernel-dev-f895b252d4edf66b2895fb5a7b17a638665f3e1f.zip
op-kernel-dev-f895b252d4edf66b2895fb5a7b17a638665f3e1f.tar.gz
sunrpc: eliminate RPC_DEBUG
It's always set to whatever CONFIG_SUNRPC_DEBUG is, so just use that. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/sunrpc_syms.c')
-rw-r--r--net/sunrpc/sunrpc_syms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index cd30120..f632e47 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -97,7 +97,7 @@ init_sunrpc(void)
err = register_rpc_pipefs();
if (err)
goto out4;
-#ifdef RPC_DEBUG
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
rpc_register_sysctl();
#endif
svc_init_xprt_sock(); /* svc sock transport */
@@ -123,7 +123,7 @@ cleanup_sunrpc(void)
unregister_rpc_pipefs();
rpc_destroy_mempool();
unregister_pernet_subsys(&sunrpc_net_ops);
-#ifdef RPC_DEBUG
+#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
rpc_unregister_sysctl();
#endif
rcu_barrier(); /* Wait for completion of call_rcu()'s */
OpenPOWER on IntegriCloud