Skip to contentSkip to conversation

net, ethernet, LLVMLinux: Add missing MODULE_DEVICE_TABLE()

PATCH In review Behan Webster 4 participants 6 messages Jan 29, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net, ethernet, LLVMLinux: Add missing MODULE_DEVICE_TABLE()

Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.

---
 drivers/net/ethernet/emulex/benet/be_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/emulex/benet/be_main.c +0 -1
index d48806b..709400a 100644
@@ -26,7 +26,6 @@
 #include <net/vxlan.h>
 
 MODULE_VERSION(DRV_VER);
-MODULE_DEVICE_TABLE(pci, be_dev_ids);
 MODULE_DESCRIPTION(DRV_DESC " " DRV_VER);
 MODULE_AUTHOR("Emulex Corporation");
 MODULE_LICENSE("GPL");
Signature · 1 line
1.9.1
maintainer
#1 lore raw

From: Behan Webster <[email protected]>
Date: Wed, 28 Jan 2015 17:36:14 -0800

Quoted 4 lines

Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.

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.

#2 lore raw
Quoted 9 lines · On Wednesday 28 January 2015 22:42:28 David Miller wrote:

From: Behan Webster <[email protected]>
Date: Wed, 28 Jan 2015 17:36:14 -0800

Quoted 4 lines

Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.

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

#3 lore raw
Quoted 15 lines · Arnd Bergmann
Quoted 9 lines · On Wednesday 28 January 2015 22:42:28 David Miller wrote:

From: Behan Webster <[email protected]>
Date: Wed, 28 Jan 2015 17:36:14 -0800

Quoted 4 lines

Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.

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.

Quoted 6 lines

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.

GCC is probably being "helpful" and allowing multiple identical definitions even though the C spec does not. Obviously all but one should go away. No need to mention llvm, IMO.

Signature · 2 lines
Måns Rullgård
[email protected]
#4 lore raw
In reply to Arnd Bergmann
Quoted 4 lines · Arnd Bergmann
Quoted 3 lines · On Wednesday 28 January 2015 22:42:28 David Miller wrote:

From: Behan Webster <[email protected]>
Date: Wed, 28 Jan 2015 17:36:14 -0800

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines

Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.

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.

Quoted 3 lines

This driver has two identical lines that both say

MODULE_DEVICE_TABLE(pci, be_dev_ids);

This is indeed the case.

Quoted 2 lines

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

Signature · 2 lines
Behan Webster
[email protected]
#5 lore raw
In reply to David Miller
Quoted 8 lines · David Miller

From: Behan Webster <[email protected]>
Date: Wed, 28 Jan 2015 17:36:14 -0800

Quoted 4 lines

Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang.

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.

Quoted 3 lines

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

Signature · 2 lines
Behan Webster
[email protected]