Re: drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c:2547: undefined reference to `vxlan_fdb_find_uc'

From: Ido Schimmel
Date: Fri Dec 21 2018 - 05:39:49 EST


On Fri, Dec 21, 2018 at 02:13:03PM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 9097a058d49e049925d8da72db07fffcee24efa0
> commit: 1231e04f5bba47f87d0b690a2d58c771a59f93aa mlxsw: spectrum_switchdev: Add support for VxLAN encapsulation
> date: 9 weeks ago
> config: x86_64-randconfig-s2-12211040 (attached as .config)
> compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
> reproduce:
> git checkout 1231e04f5bba47f87d0b690a2d58c771a59f93aa
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
> drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.o: In function `mlxsw_sp_switchdev_bridge_vxlan_fdb_event':
> >> drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c:2547: undefined reference to `vxlan_fdb_find_uc'

Problem is CONFIG_VXLAN=m and CONFIG_MLXSW_SPECTRUM=y

I'll send a fix.

Thanks!