Skip to content

Commit 4e0396c

Browse files
vkochan-plvkuba-moo
authored andcommitted
net: marvell: prestera: fix compilation with CONFIG_BRIDGE=m
With CONFIG_BRIDGE=m the compilation fails: ld: drivers/net/ethernet/marvell/prestera/prestera_switchdev.o: in function `prestera_bridge_port_event': prestera_switchdev.c:(.text+0x2ebd): undefined reference to `br_vlan_enabled' in case the driver is statically enabled. Fix it by adding 'BRIDGE || BRIDGE=n' dependency. Fixes: e1189d9 ("net: marvell: prestera: Add Switchdev driver implementation") Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Link: https://lore.kernel.org/r/20201106161128.24069-1-vadym.kochan@plvision.eu Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent ee661a4 commit 4e0396c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/marvell/prestera

drivers/net/ethernet/marvell/prestera/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
config PRESTERA
77
tristate "Marvell Prestera Switch ASICs support"
88
depends on NET_SWITCHDEV && VLAN_8021Q
9+
depends on BRIDGE || BRIDGE=n
910
select NET_DEVLINK
1011
help
1112
This driver supports Marvell Prestera Switch ASICs family.

0 commit comments

Comments
 (0)