aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2015-04-06 09:46:00 -0400
committerJ. Bruce Fields <bfields@redhat.com>2015-04-21 16:16:02 -0400
commit135dd002c23054aaa056ea3162c1e0356905c195 (patch)
treec4c0a14d73625b4920132008c1f8fbd3980678d5 /fs/nfsd/nfs4state.c
parent6e4891dc289cd191d46ab7ba1dcb29646644f9ca (diff)
nfsd: eliminate NFSD_DEBUG
Commit f895b252d4edf ("sunrpc: eliminate RPC_DEBUG") introduced use of IS_ENABLED() in a uapi header which leads to a build failure for userspace apps trying to use <linux/nfsd/debug.h>: linux/nfsd/debug.h:18:15: error: missing binary operator before token "(" #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) ^ Since this was only used to define NFSD_DEBUG if CONFIG_SUNRPC_DEBUG is enabled, replace instances of NFSD_DEBUG with CONFIG_SUNRPC_DEBUG. Cc: stable@vger.kernel.org Fixes: f895b252d4edf "sunrpc: eliminate RPC_DEBUG" Signed-off-by: Mark Salter <msalter@redhat.com> Reviewed-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index fd875b6107ba..693495551bb2 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1139,7 +1139,7 @@ hash_sessionid(struct nfs4_sessionid *sessionid)
1139 return sid->sequence % SESSION_HASH_SIZE; 1139 return sid->sequence % SESSION_HASH_SIZE;
1140} 1140}
1141 1141
1142#ifdef NFSD_DEBUG 1142#ifdef CONFIG_SUNRPC_DEBUG
1143static inline void 1143static inline void
1144dump_sessionid(const char *fn, struct nfs4_sessionid *sessionid) 1144dump_sessionid(const char *fn, struct nfs4_sessionid *sessionid)
1145{ 1145{