[jpirko-mlxsw:jiri_devel_lc_dev 4/5] core_linecard_dev.c:undefined reference to `auxiliary_device_init'

From: kernel test robot
Date: Thu Jun 02 2022 - 15:20:21 EST


tree: https://github.com/jpirko/linux_mlxsw jiri_devel_lc_dev
head: ef34c1c33c0ae43a9ad3c0ed3708eb1880972de0
commit: 2d0852c5fa89a48c6fa1f860600b5e24e2faab4b [4/5] mlxsw: core_linecards: Introduce per line card auxiliary device
config: i386-randconfig-c001 (https://download.01.org/0day-ci/archive/20220603/202206030331.RWwc4l16-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/jpirko/linux_mlxsw/commit/2d0852c5fa89a48c6fa1f860600b5e24e2faab4b
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_lc_dev
git checkout 2d0852c5fa89a48c6fa1f860600b5e24e2faab4b
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

ld: drivers/net/ethernet/mellanox/mlxsw/core_linecard_dev.o: in function `mlxsw_linecard_dev_add':
>> core_linecard_dev.c:(.text+0x129): undefined reference to `auxiliary_device_init'
>> ld: core_linecard_dev.c:(.text+0x14f): undefined reference to `__auxiliary_device_add'
ld: drivers/net/ethernet/mellanox/mlxsw/core_linecard_dev.o: in function `mlxsw_linecard_driver_register':
>> core_linecard_dev.c:(.text+0x1a6): undefined reference to `__auxiliary_driver_register'
ld: drivers/net/ethernet/mellanox/mlxsw/core_linecard_dev.o: in function `mlxsw_linecard_driver_unregister':
>> core_linecard_dev.c:(.text+0x1ba): undefined reference to `auxiliary_driver_unregister'

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