* [net-next-2.6 1/1]: bna: Fix build break for allyesconfig
@ 2010-08-25 21:32 Rasesh Mody
2010-08-25 21:52 ` Eric Dumazet
2010-08-25 22:22 ` David Miller
0 siblings, 2 replies; 5+ messages in thread
From: Rasesh Mody @ 2010-08-25 21:32 UTC (permalink / raw)
To: netdev; +Cc: amathur, ddutt, huangj, rmody
From: Rasesh Mody <rmody@brocade.com>
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 <ddutt@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
---
Kconfig | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -ruP net-next-2.6.36-rc1-orig/drivers/net/Kconfig net-next-2.6.36-rc1-mod/drivers/net/Kconfig
--- net-next-2.6.36-rc1-orig/drivers/net/Kconfig 2010-08-25 00:59:00.000000000 -0700
+++ net-next-2.6.36-rc1-mod/drivers/net/Kconfig 2010-08-25 14:24:54.236217000 -0700
@@ -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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net-next-2.6 1/1]: bna: Fix build break for allyesconfig
2010-08-25 21:32 [net-next-2.6 1/1]: bna: Fix build break for allyesconfig Rasesh Mody
@ 2010-08-25 21:52 ` Eric Dumazet
2010-08-25 22:22 ` David Miller
1 sibling, 0 replies; 5+ messages in thread
From: Eric Dumazet @ 2010-08-25 21:52 UTC (permalink / raw)
To: Rasesh Mody; +Cc: netdev, amathur, ddutt, huangj
Le mercredi 25 août 2010 à 14:32 -0700, Rasesh Mody a écrit :
> From: Rasesh Mody <rmody@brocade.com>
>
> 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 <ddutt@brocade.com>
> Signed-off-by: Rasesh Mody <rmody@brocade.com>
> ---
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net-next-2.6 1/1]: bna: Fix build break for allyesconfig
2010-08-25 21:32 [net-next-2.6 1/1]: bna: Fix build break for allyesconfig Rasesh Mody
2010-08-25 21:52 ` Eric Dumazet
@ 2010-08-25 22:22 ` David Miller
2010-08-25 23:05 ` Rasesh Mody
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2010-08-25 22:22 UTC (permalink / raw)
To: rmody; +Cc: netdev, amathur, ddutt, huangj
From: Rasesh Mody <rmody@brocade.com>
Date: Wed, 25 Aug 2010 14:32:10 -0700
> From: Rasesh Mody <rmody@brocade.com>
>
> 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 <ddutt@brocade.com>
> Signed-off-by: Rasesh Mody <rmody@brocade.com>
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [net-next-2.6 1/1]: bna: Fix build break for allyesconfig
2010-08-25 22:22 ` David Miller
@ 2010-08-25 23:05 ` Rasesh Mody
2010-08-25 23:25 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Rasesh Mody @ 2010-08-25 23:05 UTC (permalink / raw)
To: David Miller
Cc: netdev@vger.kernel.org, Akshay Mathur, Debashis Dutt, Jing Huang
>From: David Miller <mailto:davem@davemloft.net>
>Sent: Wednesday, August 25, 2010 3:23 PM
>
>From: Rasesh Mody <rmody@brocade.com>
>Date: Wed, 25 Aug 2010 14:32:10 -0700
>
>> From: Rasesh Mody <rmody@brocade.com>
>>
>> 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 <ddutt@brocade.com>
>> Signed-off-by: Rasesh Mody <rmody@brocade.com>
>
>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.
David,
We are working on fixing it properly. We will submit the patches as soon as possible.
Thanks,
Rasesh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net-next-2.6 1/1]: bna: Fix build break for allyesconfig
2010-08-25 23:05 ` Rasesh Mody
@ 2010-08-25 23:25 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-08-25 23:25 UTC (permalink / raw)
To: rmody; +Cc: netdev, amathur, ddutt, huangj
From: Rasesh Mody <rmody@brocade.com>
Date: Wed, 25 Aug 2010 16:05:43 -0700
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-25 23:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 21:32 [net-next-2.6 1/1]: bna: Fix build break for allyesconfig Rasesh Mody
2010-08-25 21:52 ` Eric Dumazet
2010-08-25 22:22 ` David Miller
2010-08-25 23:05 ` Rasesh Mody
2010-08-25 23:25 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).