]> git.baikalelectronics.ru Git - kernel.git/commit
Wrap buffers used for rpc debug printks into RPC_IFDEBUG
authorPavel Emelyanov <xemul@openvz.org>
Thu, 21 Feb 2008 07:57:45 +0000 (10:57 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 21 Feb 2008 23:42:29 +0000 (18:42 -0500)
commitdca67ad615db35e46f2c76f4043b7b2e8c2c7567
treef372bd3cb3fc2f4a2d3e4ad303e6c4d3f8f48865
parent3b3b45f2a7354610f06c5a8eb32b169f4b1c72b8
Wrap buffers used for rpc debug printks into RPC_IFDEBUG

Sorry for the noise, but here's the v3 of this compilation fix :)

There are some places, which declare the char buf[...] on the stack
to push it later into dprintk(). Since the dprintk sometimes (if the
CONFIG_SYSCTL=n) becomes an empty do { } while (0) stub, these buffers
cause gcc to produce appropriate warnings.

Wrap these buffers with RPC_IFDEBUG macro, as Trond proposed, to
compile them out when not needed.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfsd/nfsfh.c
net/sunrpc/svcsock.c