[driver-core:hid_is_usb 4/4] nios2-linux-ld: hid-prodikeys.c:undefined reference to `usb_hid_driver'

From: kernel test robot
Date: Thu Dec 02 2021 - 16:08:00 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git hid_is_usb
head: be29771805ee7d748ac02a0df3e1e10f5ead521f
commit: be29771805ee7d748ac02a0df3e1e10f5ead521f [4/4] HID: add USB_HID dependancy on some USB HID drivers
config: nios2-randconfig-r015-20211202 (https://download.01.org/0day-ci/archive/20211203/202112030506.aNZw7UPL-lkp@xxxxxxxxx/config)
compiler: nios2-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/gregkh/driver-core.git/commit/?id=be29771805ee7d748ac02a0df3e1e10f5ead521f
git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
git fetch --no-tags driver-core hid_is_usb
git checkout be29771805ee7d748ac02a0df3e1e10f5ead521f
# 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=nios2 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 >>):

nios2-linux-ld: drivers/hid/hid-chicony.o: in function `ch_probe':
hid-chicony.c:(.text+0x4): undefined reference to `usb_hid_driver'
nios2-linux-ld: hid-chicony.c:(.text+0x8): undefined reference to `usb_hid_driver'
nios2-linux-ld: drivers/hid/hid-prodikeys.o: in function `pk_probe':
hid-prodikeys.c:(.text+0x1150): undefined reference to `usb_hid_driver'
>> nios2-linux-ld: hid-prodikeys.c:(.text+0x1154): undefined reference to `usb_hid_driver'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx