From: Pavel Emelyanov Date: Thu, 21 Feb 2008 07:57:45 +0000 (+0300) Subject: Wrap buffers used for rpc debug printks into RPC_IFDEBUG X-Git-Tag: v2.6.25-rc3~91^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5216a8e70e25b01cbd2915cd0442fb96deb2c262;p=pandora-kernel.git 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 Acked-by: J. Bruce Fields Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed