]> git.baikalelectronics.ru Git - kernel.git/commit
net: marvell: prestera: fix compilation with CONFIG_BRIDGE=m
authorVadym Kochan <vadym.kochan@plvision.eu>
Fri, 6 Nov 2020 16:11:25 +0000 (18:11 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 20:43:26 +0000 (12:43 -0800)
commitc20f9b5edf96f2cd6d23694ca02fde30d41d32e1
treed5c2d7b9b7ee765cdbb37db8116eb67d4db15ac6
parent1bcf152e7b64cc417122dedb70116943ec88925e
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: 53c004ac3e0f ("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>
drivers/net/ethernet/marvell/prestera/Kconfig