From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH] net, ethernet, LLVMLinux: Add missing MODULE_DEVICE_TABLE() Date: Thu, 29 Jan 2015 10:10:48 +0100 Message-ID: <3392784.h8cmHX9fyr@wuerfel> References: <1422495374-22835-1-git-send-email-behanw@converseincode.com> <20150128.224228.1533046356464752424.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: behanw@converseincode.com, sathya.perla@emulex.com, ajit.khaparde@emulex.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, subbu.seetharaman@emulex.com To: David Miller Return-path: In-Reply-To: <20150128.224228.1533046356464752424.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wednesday 28 January 2015 22:42:28 David Miller wrote: > From: Behan Webster > Date: Wed, 28 Jan 2015 17:36:14 -0800 > > > Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang. > > > > Signed-off-by: Behan Webster > > Suggested-by: Arnd Bergmann > > Why are you removing the device table? Behan took a patch that I did earlier and split it up to add descriptions. The patch is correct, but he either misunderstood or misexpressed the intention. This driver has two identical lines that both say MODULE_DEVICE_TABLE(pci, be_dev_ids); I don't remember the exact symptom, but llvm/clang trips over this, while gcc silently ignores the second one. Arnd