Commit ee0ab7a2 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

net: dsa: Fix dependencies on bridge

DSA now uses one of the symbols exported by the bridge,
br_vlan_enabled(). This has a stub, if the bridge is not
enabled. However, if the bridge is enabled, we cannot have DSA built
in and the bridge as a module, otherwise we get undefined symbols at
link time:

   net/dsa/port.o: In function `dsa_port_vlan_add':
   net/dsa/port.c:255: undefined reference to `br_vlan_enabled'
   net/dsa/port.o: In function `dsa_port_vlan_del':
   net/dsa/port.c:270: undefined reference to `br_vlan_enabled'
Reported-by: default avatarkbuild test robot <[email protected]>
Signed-off-by: default avatarAndrew Lunn <[email protected]>
Signed-off-by: default avatarDavid S. Miller <[email protected]>
parent ede372dc
......@@ -7,6 +7,7 @@ config HAVE_NET_DSA
config NET_DSA
tristate "Distributed Switch Architecture"
depends on BRIDGE || BRIDGE=n
select PHYLIB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment