Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.
Signed-off-by: Behan Webster <redacted>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Why are you removing the device table?
Second of all, your Subject needs to be adjusted, using "net" and
"LLVMLinux" in your subsystem prefix is not appropriate. Simply
"be2net: ", the name of this driver, is sufficient.
Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.
Signed-off-by: Behan Webster <redacted>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
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
Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.
Signed-off-by: Behan Webster <redacted>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
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.
I was tired and rushed this submission in my preparation for FOSDEM.
Apologies to all.
I neglected to write the commit log when I first split the patch, and
didn't look hard enough this time.
This driver has two identical lines that both say
MODULE_DEVICE_TABLE(pci, be_dev_ids);
This is indeed the case.
I don't remember the exact symptom, but llvm/clang trips over this, while gcc
silently ignores the second one.
It claims that it is defined more than once.
Behan
--
Behan Webster
behanw@converseincode.com
Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.
Signed-off-by: Behan Webster <redacted>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Why are you removing the device table?
It is defined more than once; removing the duplicate (as Arnd
indicated). My commit message was just completely wrong. Brain fart. Sorry.
Second of all, your Subject needs to be adjusted, using "net" and
"LLVMLinux" in your subsystem prefix is not appropriate. Simply
"be2net: ", the name of this driver, is sufficient.
Will fix.
I've been in the habit of labelling the patches which go through the
LLVMLinux project like this so they are trivially identifiable in the
subject on lkml for reviewers and in the git log as being patches which
exist because of clang. If it's annoying I certainly don't need to do it.
Behan
--
Behan Webster
behanw@converseincode.com