tree: https://github.com/jgunthorpe/linux vfio_reflck_cleanup head: f4e0a740bed3d566fe5cbe71f10a4a32b5c0b2e6 commit: e7b791049d64f9a7b6028b6ed3175ca53d2ad915 [3/12] vfio: Introduce a vfio_uninit_group_dev() API call config: x86_64-randconfig-a012-20210630 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e7e71e9454ed76c1b3d8140170b5333c28bef1be) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/jgunthorpe/linux/commit/e7b791049d64f9a7b6028b6ed3175ca53d2ad915 git remote add jgunthorpe https://github.com/jgunthorpe/linux git fetch --no-tags jgunthorpe vfio_reflck_cleanup git checkout e7b791049d64f9a7b6028b6ed3175ca53d2ad915 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev' void vfio_init_group_dev(struct vfio_device *device, struct device *dev, ^ include/linux/vfio.h:62:5: note: previous declaration is here int vfio_init_group_dev(struct vfio_device *device, struct device *dev, ^ 1 error generated. vim +/vfio_init_group_dev +743 drivers/vfio/vfio.c cba3345cc494ad Alex Williamson 2012-07-31 739 cba3345cc494ad Alex Williamson 2012-07-31 740 /** cba3345cc494ad Alex Williamson 2012-07-31 741 * VFIO driver API cba3345cc494ad Alex Williamson 2012-07-31 742 */ 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 @743 void vfio_init_group_dev(struct vfio_device *device, struct device *dev, 1e04ec14204dec Jason Gunthorpe 2021-03-30 744 const struct vfio_device_ops *ops) cba3345cc494ad Alex Williamson 2012-07-31 745 { 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 746 init_completion(&device->comp); 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 747 device->dev = dev; 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 748 device->ops = ops; 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 749 } 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 750 EXPORT_SYMBOL_GPL(vfio_init_group_dev); 0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 751 :::::: The code at line 743 was first introduced by commit :::::: 0bfc6a4ea63c2adac71a824397ef48f28dbc5e47 vfio: Split creation of a vfio_device into init and register ops :::::: TO: Jason Gunthorpe :::::: CC: Alex Williamson --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org