Skip to contentSkip to conversation

cxgb3: fix build error when INET=n

PATCH Applied Randy Dunlap 3 participants 3 messages May 30, 2008 – May 31, 2008

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

PATCH 1/1 cxgb3: fix build error when INET=n

From: Randy Dunlap <[email protected]>

cxgb3 uses lro_* functions and selects INET_LRO, but this doesn't help unless INET is already enabled, so make the driver depend on INET also.

sge.c:(.text+0x9f09a): undefined reference to lro_flush_all' sge.c:(.text+0x9f62f): undefined reference to lro_receive_skb' sge.c:(.text+0x9f8a3): undefined reference to lro_receive_frags' sge.c:(.text+0x9fbe0): undefined reference to lro_vlan_hwaccel_receive_skb' sge.c:(.text+0x9ffcd): undefined reference to `lro_vlan_hwaccel_receive_frags'

---
 drivers/net/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/Kconfig +1 -1
@@ -2407,7 +2407,7 @@ config CHELSIO_T1_NAPI
 
 config CHELSIO_T3
 	tristate "Chelsio Communications T3 10Gb Ethernet support"
-	depends on PCI
+	depends on PCI && INET
 	select FW_LOADER
 	select INET_LRO
 	help
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

cxgb3 uses lro_* functions and selects INET_LRO, but this doesn't help unless INET is already enabled, so make the driver depend on INET also.

Quoted 8 lines

sge.c:(.text+0x9f09a): undefined reference to lro_flush_all' sge.c:(.text+0x9f62f): undefined reference to lro_receive_skb' sge.c:(.text+0x9f8a3): undefined reference to lro_receive_frags' sge.c:(.text+0x9fbe0): undefined reference to lro_vlan_hwaccel_receive_skb' sge.c:(.text+0x9ffcd): undefined reference to `lro_vlan_hwaccel_receive_frags'

Applied
#2 lore raw
In reply to Randy Dunlap
Quoted 19 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

cxgb3 uses lro_* functions and selects INET_LRO, but this doesn't help unless INET is already enabled, so make the driver depend on INET also.

sge.c:(.text+0x9f09a): undefined reference to lro_flush_all' sge.c:(.text+0x9f62f): undefined reference to lro_receive_skb' sge.c:(.text+0x9f8a3): undefined reference to lro_receive_frags' sge.c:(.text+0x9fbe0): undefined reference to lro_vlan_hwaccel_receive_skb' sge.c:(.text+0x9ffcd): undefined reference to `lro_vlan_hwaccel_receive_frags'

---
 drivers/net/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/net/Kconfig config CHELSIO_T1_NAPI

Quoted 9 lines
drivers/net/Kconfig +1 -2
@@ -2407,7 +2407,7 @@ config CHELSIO_T1_NAPI
 
 config CHELSIO_T3
 	tristate "Chelsio Communications T3 10Gb Ethernet support"
-	depends on PCI
+	depends on PCI && INET
 	select FW_LOADER
 	select INET_LRO
 	help
--

applied