]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nfsd: eliminate NFSD_DEBUG
authorMark Salter <msalter@redhat.com>
Mon, 6 Apr 2015 13:46:00 +0000 (09:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:02:03 +0000 (22:02 +0200)
commit 135dd002c23054aaa056ea3162c1e0356905c195 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/lockd/svcsubs.c
fs/nfsd/nfs4state.c
fs/nfsd/nfsd.h
include/uapi/linux/nfsd/debug.h

index d12ff4e2dbe792e175eaacf0a67286d1a3815a13..251a1f04be2f2b763e9028a3830ecfce1067af3a 100644 (file)
@@ -31,7 +31,7 @@
 static struct hlist_head       nlm_files[FILE_NRHASH];
 static DEFINE_MUTEX(nlm_file_mutex);
 
-#ifdef NFSD_DEBUG
+#ifdef CONFIG_SUNRPC_DEBUG
 static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f)
 {
        u32 *fhp = (u32*)f->data;
index 7cfb905a1e90d26f3a72f3699dfecdb92a55c492..ddacc436a77a955aee45a7db9c1f5071ca5e0730 100644 (file)
@@ -1162,7 +1162,7 @@ hash_sessionid(struct nfs4_sessionid *sessionid)
        return sid->sequence % SESSION_HASH_SIZE;
 }
 
-#ifdef NFSD_DEBUG
+#ifdef CONFIG_SUNRPC_DEBUG
 static inline void
 dump_sessionid(const char *fn, struct nfs4_sessionid *sessionid)
 {
index 33a46a8dfaf73aaa65ecec7b4603b86ea4e49d83..403d8e14fcafd97f2f4ab3e2f4ed72004779aa09 100644 (file)
@@ -24,7 +24,7 @@
 #include "export.h"
 
 #undef ifdebug
-#ifdef NFSD_DEBUG
+#ifdef CONFIG_SUNRPC_DEBUG
 # define ifdebug(flag)         if (nfsd_debug & NFSDDBG_##flag)
 #else
 # define ifdebug(flag)         if (0)
index 1fdc95bb2375c5f8c4d7b0d32bb49616a2a62106..c021bbaf21b74c858e0e4610510ec1f86a21aa6b 100644 (file)
 
 #include <linux/sunrpc/debug.h>
 
-/*
- * Enable debugging for nfsd.
- * Requires RPC_DEBUG.
- */
-#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
-# define NFSD_DEBUG            1
-#endif
-
 /*
  * knfsd debug flags
  */