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

From: kernel test robot
Date: Fri Oct 01 2021 - 14:25:33 EST


tree: https://github.com/luxis1999/dev-iommu dev-iommu-5.14-rfcv1
head: 8d2f14a235e67092365d15107cfc357e86d69629
commit: 681ef45009e778fbfcb86919f22111ff99a38567 [18/20] iommu/iommufd: Add IOMMU_[UN]MAP_DMA on IOASID
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/681ef45009e778fbfcb86919f22111ff99a38567
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 681ef45009e778fbfcb86919f22111ff99a38567
# 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'
aarch64-linux-ld: drivers/iommu/iommufd/iommufd.o: in function `ioas_put_locked':
>> iommufd.c:(.text+0x444): undefined reference to `vfio_iommu_type1_release'
aarch64-linux-ld: drivers/iommu/iommufd/iommufd.o: in function `iommufd_process_dma_op':
>> iommufd.c:(.text+0x708): undefined reference to `vfio_iommu_type1_map_dma'
>> aarch64-linux-ld: iommufd.c:(.text+0x754): undefined reference to `vfio_iommu_type1_unmap_dma'
aarch64-linux-ld: drivers/iommu/iommufd/iommufd.o: in function `iommufd_ioasid_alloc':
>> iommufd.c:(.text+0x99c): undefined reference to `vfio_iommu_type1_open'
aarch64-linux-ld: drivers/iommu/iommufd/iommufd.o: in function `iommufd_device_attach_ioasid':
iommufd.c:(.text+0x13c4): undefined reference to `vfio_iommu_add_group'
aarch64-linux-ld: drivers/iommu/iommufd/iommufd.o: in function `iommufd_device_detach_ioasid':
iommufd.c:(.text+0x162c): undefined reference to `vfio_iommu_remove_group'

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

Attachment: .config.gz
Description: application/gzip