[luxis1999-iommufd:iommufd-v5.17-rc4 29/30] drivers/vfio/vfio.c:1800:10: error: implicit declaration of function 'iommufd_vfio_set_iommu'

From: kernel test robot
Date: Tue Mar 01 2022 - 12:00:33 EST


tree: https://github.com/luxis1999/iommufd iommufd-v5.17-rc4
head: 2bca5fa75dad57f41002a93861a950d35d55e568
commit: f8fb748995b4e1156fd76a3860da5ea897536a3c [29/30] vfio: Fix kernel panic in vfio_ioctl_check_extension()
config: hexagon-randconfig-r041-20220301 (https://download.01.org/0day-ci/archive/20220302/202203020051.lJg5pB22-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/iommufd/commit/f8fb748995b4e1156fd76a3860da5ea897536a3c
git remote add luxis1999-iommufd https://github.com/luxis1999/iommufd
git fetch --no-tags luxis1999-iommufd iommufd-v5.17-rc4
git checkout f8fb748995b4e1156fd76a3860da5ea897536a3c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/vfio/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/vfio/vfio.c:1088:44: error: too many arguments to function call, expected single argument 'iommufd', have 2 arguments
vfio_group_unset_iommufd(group->iommufd, &group->device_list);
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
include/linux/iommufd.h:57:20: note: 'vfio_group_unset_iommufd' declared here
static inline void vfio_group_unset_iommufd(void *iommufd)
^
drivers/vfio/vfio.c:1166:26: error: too few arguments to function call, expected 3, have 2
&group->device_list);
^
include/linux/iommufd.h:51:19: note: 'vfio_group_set_iommufd' declared here
static inline int vfio_group_set_iommufd(int fd, struct iommu_group *group,
^
>> drivers/vfio/vfio.c:1800:10: error: implicit declaration of function 'iommufd_vfio_set_iommu' [-Werror,-Wimplicit-function-declaration]
return iommufd_vfio_set_iommu(group->iommufd, arg);
^
3 errors generated.


vim +/iommufd_vfio_set_iommu +1800 drivers/vfio/vfio.c

1796
1797 long vfio_external_check_extension(struct vfio_group *group, unsigned long arg)
1798 {
1799 if (group->iommufd)
> 1800 return iommufd_vfio_set_iommu(group->iommufd, arg);
1801
1802 return vfio_ioctl_check_extension(group->container, arg);
1803 }
1804 EXPORT_SYMBOL_GPL(vfio_external_check_extension);
1805

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