[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130121182552.GD5499@kroah.com>
Date: Mon, 21 Jan 2013 10:25:52 -0800
From: Greg KH <gregkh@...uxfoundation.org>
To: Jon Mason <jon.mason@...el.com>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
Dave Jiang <dave.jiang@...el.com>,
Nicholas Bellinger <nab@...ux-iscsi.org>
Subject: Re: [PATCH 08/21] NTB: declare unused variables
On Mon, Jan 21, 2013 at 10:50:55AM -0700, Jon Mason wrote:
> On Sun, Jan 20, 2013 at 03:42:28PM -0800, Greg KH wrote:
> > On Sat, Jan 19, 2013 at 02:02:22AM -0700, Jon Mason wrote:
> > > Tag pci_device_id in ntb_pci_probe as unused function parameters. This
> > > corrects issues found by 'EXTRA_CFLAGS=-W'.
> >
> > Why would you build the kernel with that option? This isn't needed, so
>
> Per Documentation/SubmitChecklist:
>
> 22: Newly-added code has been compiled with `gcc -W' (use "make
> EXTRA_CFLAGS=-W"). This will generate lots of noise, but is good for
> finding bugs like "warning: comparison between signed and unsigned".
>
>
> I was attempting to comply with that suggestion. If this is
> unnecessary, then I can toss these, but I don't really see them
> hurting anything.
It's messy and unneeded, so I'd not recommend using it. As the
checklist says, it generates a lot of noise, and is good for finding
real bugs, this isn't a "real" bug at all.
> Same goes for the other 2 patches found via 'EXTRA_CFLAGS=-W'.
Understood, I've not applied them either :)
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists