cnic.c:undefined reference to `uio_event_notify'

From: kernel test robot
Date: Sat Feb 13 2021 - 08:37:33 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749
commit: 14483cbf040fcb38113497161088a1ce8ce5d713 net: broadcom CNIC: requires MMU
date: 2 months ago
config: riscv-randconfig-s031-20210212 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=14483cbf040fcb38113497161088a1ce8ce5d713
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 14483cbf040fcb38113497161088a1ce8ce5d713
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv

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/broadcom/cnic.o: in function `.L169':
>> cnic.c:(.text+0x1174): undefined reference to `uio_event_notify'
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `cnic_chk_pkt_rings':
cnic.c:(.text+0x119c): undefined reference to `uio_event_notify'
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `.L0 ':
>> cnic.c:(.text+0xaac8): undefined reference to `__uio_register_device'
>> riscv64-linux-ld: cnic.c:(.text.unlikely+0x68): undefined reference to `uio_unregister_device'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CNIC
Depends on NETDEVICES && ETHERNET && NET_VENDOR_BROADCOM && PCI && (IPV6 || IPV6 && MMU
Selected by
- SCSI_BNX2X_FCOE && SCSI_LOWLEVEL && SCSI && PCI && (IPV6 || IPV6 && LIBFC && LIBFCOE

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

Attachment: .config.gz
Description: application/gzip