Skip to content

Commit ee0ab7a

Browse files
lunndavem330
authored andcommitted
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: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ede372d commit ee0ab7a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/dsa/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config HAVE_NET_DSA
77
config NET_DSA
88
tristate "Distributed Switch Architecture"
99
depends on HAVE_NET_DSA && MAY_USE_DEVLINK
10+
depends on BRIDGE || BRIDGE=n
1011
select NET_SWITCHDEV
1112
select PHYLIB
1213
---help---

0 commit comments

Comments
 (0)