sparx5_switchdev.c:undefined reference to `br_vlan_enabled'

From: kernel test robot
Date: Tue Mar 29 2022 - 15:09:47 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1930a6e739c4b4a654a69164dbe39e554d228915
commit: 3bacfccdcb2d3268adaf66d2ff4024251a93b916 net: sparx5: Add mdb handlers
date: 8 days ago
config: riscv-randconfig-r026-20220329 (https://download.01.org/0day-ci/archive/20220330/202203300320.7mLe6ehJ-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3bacfccdcb2d3268adaf66d2ff4024251a93b916
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3bacfccdcb2d3268adaf66d2ff4024251a93b916
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

riscv64-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.o: in function `sparx5_handle_port_mdb_del.constprop.0':
>> sparx5_switchdev.c:(.text+0x1e98): undefined reference to `br_vlan_enabled'
riscv64-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.o: in function `.L679':
sparx5_switchdev.c:(.text+0x25e8): undefined reference to `br_vlan_enabled'

--
0-DAY CI Kernel Test Service
https://01.org/lkp