Re: [PATCH] net, ethernet, LLVMLinux: Add missing MODULE_DEVICE_TABLE()

From: Arnd Bergmann
Date: Thu Jan 29 2015 - 04:11:39 EST


On Wednesday 28 January 2015 22:42:28 David Miller wrote:
> From: Behan Webster <behanw@xxxxxxxxxxxxxxxxxx>
> 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 <behanw@xxxxxxxxxxxxxxxxxx>
> > Suggested-by: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/