[jonmason-ntb:ntb-next 6/8] pci-epf-vntb.c:undefined reference to `ntb_db_event'

From: kernel test robot
Date: Mon Jun 27 2022 - 14:39:33 EST


tree: https://github.com/jonmason/ntb ntb-next
head: 0c4b285d9636cc850f55151fa6a250dd131e5192
commit: ff32fac00d97661c715ee47bbfd867cae1f3aaf8 [6/8] NTB: EPF: support NTB transfer between PCI RC and EP connection
config: arm64-randconfig-s031-20220627 (https://download.01.org/0day-ci/archive/20220628/202206280254.MJOpIIDp-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.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.4-31-g4880bd19-dirty
# https://github.com/jonmason/ntb/commit/ff32fac00d97661c715ee47bbfd867cae1f3aaf8
git remote add jonmason-ntb https://github.com/jonmason/ntb
git fetch --no-tags jonmason-ntb ntb-next
git checkout ff32fac00d97661c715ee47bbfd867cae1f3aaf8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 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 >>):

aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: ID map text too big or misaligned
aarch64-linux-ld: drivers/pci/endpoint/functions/pci-epf-vntb.o: in function `epf_ntb_cmd_handler':
>> pci-epf-vntb.c:(.text+0x3b8): undefined reference to `ntb_db_event'
>> aarch64-linux-ld: pci-epf-vntb.c:(.text+0x464): undefined reference to `ntb_link_event'
aarch64-linux-ld: pci-epf-vntb.c:(.text+0x4cc): undefined reference to `ntb_link_event'
aarch64-linux-ld: drivers/pci/endpoint/functions/pci-epf-vntb.o: in function `pci_vntb_probe':
>> pci-epf-vntb.c:(.text+0xf80): undefined reference to `ntb_register_device'

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