: bna: Fix build break for allyesconfig
Subsystems (2)
PATCH 1/1 : bna: Fix build break for allyesconfig
From: Rasesh Mody <[email protected]>
This patch contains a fix for the build break caused by multiple definitions of symbols between Brocade's FC/FCOE driver(BFA) and 10G Networking Driver(BNA).
The fix is to make BNA a module only driver.
--- Kconfig | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/Kconfig +1 -1
@@ -2871,7 +2871,7 @@ config BNA tristate "Brocade 1010/1020 10Gb Ethernet Driver support" - depends on PCI + depends on PCI && m ---help--- This driver supports Brocade 1010/1020 10Gb CEE capable Ethernet cards.
Quoted 6 lines · Rasesh Mody
From: Rasesh Mody <[email protected]>
This patch contains a fix for the build break caused by multiple definitions of symbols between Brocade's FC/FCOE driver(BFA) and 10G Networking Driver(BNA).
Quoted 8 lines
The fix is to make BNA a module only driver.
Signed-off-by Debashis Dutt <[email protected]>Signed-off-by Rasesh Mody <[email protected]>--- Kconfig | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
small note about diffstat : please use -p1 -w70 options for next submissions.
I wont comment on the patch itself.
David Miller
maintainerFrom: Rasesh Mody <[email protected]>
Date: Wed, 25 Aug 2010 14:32:10 -0700
Quoted 10 lines
From: Rasesh Mody <[email protected]>
This patch contains a fix for the build break caused by multiple definitions of symbols between Brocade's FC/FCOE driver(BFA) and 10G Networking Driver(BNA).
The fix is to make BNA a module only driver.
Signed-off-by Debashis Dutt <[email protected]>Signed-off-by Rasesh Mody <[email protected]>
You have to be kidding me. This fix is totally unacceptable.
You have to go through your two drivers and:
1) Mark as 'static' symbols that don't actually need global visibility.
2) Make the two drivers use unique namespaces for the function names that must be globally visible for whatever reason.
You are really trying my patience, fix this properly and promptly or I'm removing your driver from the tree.
Quoted 21 lines
From: David Miller <mailto:[email protected]>
Sent: Wednesday, August 25, 2010 3:23 PMFrom: Rasesh Mody <[email protected]>
Date: Wed, 25 Aug 2010 14:32:10 -0700Quoted 10 lines
From: Rasesh Mody <[email protected]>
This patch contains a fix for the build break caused by multiple definitions of symbols between Brocade's FC/FCOE driver(BFA) and 10G Networking Driver(BNA).
The fix is to make BNA a module only driver.
Signed-off-by Debashis Dutt <[email protected]>Signed-off-by Rasesh Mody <[email protected]>You have to be kidding me. This fix is totally unacceptable.
You have to go through your two drivers and:
Quoted 8 lines
1) Mark as 'static' symbols that don't actually need global visibility.
2) Make the two drivers use unique namespaces for the function names that must be globally visible for whatever reason.
You are really trying my patience, fix this properly and promptly or I'm removing your driver from the tree.
David,
We are working on fixing it properly. We will submit the patches as soon as possible.
Thanks,
Rasesh
David Miller
maintainerFrom: Rasesh Mody <[email protected]>
Date: Wed, 25 Aug 2010 16:05:43 -0700
Quoted 2 lines
We are working on fixing it properly. We will submit the patches as soon as possible.
Thank you.
Also, if this is essentially two copies of the same piece of code, consider splitting it out into a seperate module in the future. There are a few drivers which do this, f.e. see the MLX4 driver, which supports both a network device and an infiniband device out of the same hardware, using a core of shared code in a seperate module called mlx4_core which exports symbols to the network and infiniband drivers.