Commit 10b89567 authored by Jeff Layton's avatar Jeff Layton Committed by Trond Myklebust

lockd: eliminate LOCKD_DEBUG

LOCKD_DEBUG is always the same value as CONFIG_SUNRPC_DEBUG, so we can
just use it instead.
Signed-off-by: default avatarJeff Layton <jlayton@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 4bd5a980
...@@ -53,7 +53,7 @@ static const struct rpc_call_ops nlmsvc_grant_ops; ...@@ -53,7 +53,7 @@ static const struct rpc_call_ops nlmsvc_grant_ops;
static LIST_HEAD(nlm_blocked); static LIST_HEAD(nlm_blocked);
static DEFINE_SPINLOCK(nlm_blocked_lock); static DEFINE_SPINLOCK(nlm_blocked_lock);
#ifdef LOCKD_DEBUG #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie) static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie)
{ {
/* /*
......
...@@ -17,12 +17,8 @@ ...@@ -17,12 +17,8 @@
* Enable lockd debugging. * Enable lockd debugging.
* Requires RPC_DEBUG. * Requires RPC_DEBUG.
*/ */
#ifdef RPC_DEBUG
# define LOCKD_DEBUG 1
#endif
#undef ifdebug #undef ifdebug
#if defined(RPC_DEBUG) && defined(LOCKD_DEBUG) #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
# define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag)) # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
#else #else
# define ifdebug(flag) if (0) # define ifdebug(flag) if (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment