summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/debug.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-03-20 19:20:53 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-21 09:31:31 -0400
commitb3b536a1230a14e3ef97e5331ba7ad036c6258a9 (patch)
tree16c60f7c5cb0728d9728e00892d63b15527057d1 /include/linux/sunrpc/debug.h
parente27d359e9b7e446190362cd5c8fe281d02194896 (diff)
downloadlinux-stable-b3b536a1230a14e3ef97e5331ba7ad036c6258a9.tar.gz
linux-stable-b3b536a1230a14e3ef97e5331ba7ad036c6258a9.tar.bz2
linux-stable-b3b536a1230a14e3ef97e5331ba7ad036c6258a9.zip
SUNRPC: Kill compiler warning when RPC_DEBUG is unset
Loads of these: linux/net/sunrpc/rpcb_clnt.c:942:2: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body] show up when I unset CONFIG_PROC_SYSCTL. Seen with gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9) Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/debug.h')
-rw-r--r--include/linux/sunrpc/debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
index 9448eb5e426c..a76cc20d98ce 100644
--- a/include/linux/sunrpc/debug.h
+++ b/include/linux/sunrpc/debug.h
@@ -74,8 +74,8 @@ extern unsigned int nlm_debug;
# define RPC_IFDEBUG(x) x
#else
# define ifdebug(fac) if (0)
-# define dfprintk(fac, args...) do ; while (0)
-# define dfprintk_rcu(fac, args...) do ; while (0)
+# define dfprintk(fac, args...) do {} while (0)
+# define dfprintk_rcu(fac, args...) do {} while (0)
# define RPC_IFDEBUG(x)
#endif