[luxis1999-dev-iommu:dev-iommu-5.14-rfcv1 17/20] iommufd.c:undefined reference to `vfio_device_add_iova_cap'

From: kernel test robot
Date: Fri Oct 01 2021 - 09:33:55 EST


tree: https://github.com/luxis1999/dev-iommu dev-iommu-5.14-rfcv1
head: 8d2f14a235e67092365d15107cfc357e86d69629
commit: 918796de754433e96e33d70a6d87c7ee9af952e0 [17/20] iommu/iommufd: Report iova range to userspace
config: arm64-randconfig-c023-20211001 (attached as .config)
compiler: aarch64-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://github.com/luxis1999/dev-iommu/commit/918796de754433e96e33d70a6d87c7ee9af952e0
git remote add luxis1999-dev-iommu https://github.com/luxis1999/dev-iommu
git fetch --no-tags luxis1999-dev-iommu dev-iommu-5.14-rfcv1
git checkout 918796de754433e96e33d70a6d87c7ee9af952e0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 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 >>):

aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: drivers/iommu/iommufd/iommufd.o: in function `iommu_device_add_cap_chain.constprop.0':
>> iommufd.c:(.text+0x20): undefined reference to `vfio_device_add_iova_cap'
>> aarch64-linux-ld: iommufd.c:(.text+0x88): undefined reference to `vfio_info_cap_shift'

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

Attachment: .config.gz
Description: application/gzip