Patchwork [-next] net: NET_DSA depends on NET_ETHERNET

mail settings
Submitter Randy Dunlap
Date July 20, 2010, 11:03 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/59386/
State Not Applicable
Delegated to: David Miller
Headers show


Randy Dunlap - July 20, 2010, 11:03 p.m.
From: Randy Dunlap <>

NET_DSA code selects and uses PHYLIB code, but PHYLIB depends on
NET_ETHERNET.  However, "select" does not follow kconfig dependencies,
so explicitly list that requirement here instead.

Fixes this kconfig warning:

warning: (NET_DSA && NET && EXPERIMENTAL && !S390 ...) selects PHYLIB which has unmet direct dependencies (!S390 && NET_ETHERNET)

Signed-off-by: Randy Dunlap <>
Cc: Lennert Buytenhek <>
 net/dsa/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Is there some reason that NET_DSA is bool instead of tristate?
I.e., net/dsa/ code cannot be built as loadable modules?
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at


--- linux-next-20100713.orig/net/dsa/Kconfig
+++ linux-next-20100713/net/dsa/Kconfig
@@ -1,7 +1,7 @@ 
 menuconfig NET_DSA
 	bool "Distributed Switch Architecture support"
 	default n
-	depends on EXPERIMENTAL && !S390
+	depends on EXPERIMENTAL && !S390 && NET_ETHERNET
 	select PHYLIB
 	  This allows you to use hardware switch chips that use