Skip to contentSkip to conversation

switchdev: select INET in Kconfig

PATCH In review Jiri Pirko 2 participants 2 messages Mar 11, 2015

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 switchdev: select INET in Kconfig

This would fix randconfig compile error:
net/built-in.o: In function `netdev_switch_fib_ipv4_abort':
(.text+0xf7811): undefined reference to `fib_flush_external'

Also it fixes following warning:
warning: (NET_DSA) selects NET_SWITCHDEV which has unmet direct dependencies (NET && INET)

---
 net/switchdev/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/switchdev/Kconfig +1 -1
index 86a47e1..3487940 100644
@@ -4,7 +4,7 @@
 
 config NET_SWITCHDEV
 	bool "Switch (and switch-ish) device support (EXPERIMENTAL)"
-	depends on INET
+	select INET
 	---help---
 	  This module provides glue between core networking code and device
 	  drivers in order to support hardware switch chips in very generic
Signature · 1 line
1.9.3
maintainer
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Wed, 11 Mar 2015 10:49:12 +0100

Quoted 9 lines

This would fix randconfig compile error:
net/built-in.o: In function `netdev_switch_fib_ipv4_abort':
(.text+0xf7811): undefined reference to `fib_flush_external'

Also it fixes following warning:
warning: (NET_DSA) selects NET_SWITCHDEV which has unmet direct dependencies (NET && INET)

You cannot use select with INET, it selects CRYPTO* stuff and therefore is not a leaf Kconfig node.