Re: [PATCH net] net: marvell: prestera: fix compilation with CONFIG_BRIDGE=m
From: Jakub Kicinski
Date: Sat Nov 07 2020 - 15:45:59 EST
On Fri, 6 Nov 2020 12:13:12 -0800 Randy Dunlap wrote:
> On 11/6/20 8:11 AM, Vadym Kochan wrote:
> > 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: e1189d9a5fbe ("net: marvell: prestera: Add Switchdev driver implementation")
> > Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> > Signed-off-by: Vadym Kochan <vadym.kochan@xxxxxxxxxxx>
>
> Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> # build-tested
Applied, thanks!