]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Fix dependencies on bridge
authorAndrew Lunn <andrew@lunn.ch>
Sat, 11 Nov 2017 15:29:41 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 02:11:45 +0000 (11:11 +0900)
commit7516ad57110b562a3989e979a0c23c611cc7ef26
tree5353fce27d2a66e5f445381c562b135aa31c3d37
parentfd9a88bad94d7bb1367c041137d57a99c49b89a9
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>
net/dsa/Kconfig