Skip to content

Commit

Permalink
net: marvell: prestera: fix compilation with CONFIG_BRIDGE=m
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Vadym Kochan <[email protected]>
Acked-by: Randy Dunlap <[email protected]> # build-tested
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
vkochan-plv authored and kuba-moo committed Nov 7, 2020
1 parent ee661a4 commit 4e0396c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/marvell/prestera/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
config PRESTERA
tristate "Marvell Prestera Switch ASICs support"
depends on NET_SWITCHDEV && VLAN_8021Q
depends on BRIDGE || BRIDGE=n
select NET_DEVLINK
help
This driver supports Marvell Prestera Switch ASICs family.
Expand Down

0 comments on commit 4e0396c

Please sign in to comment.