[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1203526835.13125.11.camel@heimdal.trondhjem.org>
Date: Wed, 20 Feb 2008 12:00:35 -0500
From: Trond Myklebust <trond.myklebust@....uio.no>
To: Pavel Emelyanov <xemul@...nvz.org>
Cc: Patrick McHardy <kaber@...sh.net>, Joe Perches <joe@...ches.com>,
"J. Bruce Fields" <bfields@...i.umich.edu>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH] SUNRPC: Mark buffer used for debug printks
with __maybe_unused
On Wed, 2008-02-20 at 19:27 +0300, Pavel Emelyanov wrote:
> Patrick McHardy wrote:
> > Joe Perches wrote:
> >> On Wed, 2008-02-20 at 07:29 -0800, Joe Perches wrote:
> >>
> >>> fs/nfsd/nfsproc.c: char buf[RPC_MAX_ADDRBUFLEN];
> >>> Perhaps there should be a DECLARE_RPC_BUF(buf) macro?
> >>> #define DECLARE_RPC_BUF(var) char var[MAC_BUF_SIZE] __maybe_unused
> >>>
> >> Make that:
> >>
> >> #define DECLARE_RPC_BUF(var) char var[RPC_MAX_ADDRBUFLEN] __maybe_unuse
>
> OK, I'll send the patch in a moment.
1) Please always Cc linux-nfs@...r.kernel.org when changing the sunrpc
code
2) Please don't use the name RPC_BUF. These are debugging strings, not
buffers. Something like DECLARE_RPC_DEBUG_STR() would be more
appropriate.
3) If you're going to use a macro, why not just use the existing
RPC_IFDEBUG()?
Trond
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists