tree: https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git dma_iommu_v3 head: 7523f535cc9a64420a54bc68b2430e58c21ce349 commit: 33d055135c6696fa781e8318c38c28aa03666fba [1/7] iommu: Allow .iotlb_sync_map to fail and handle s390's -ENOMEM return config: arc-randconfig-r043-20221227 compiler: arc-elf-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/commit/?id=33d055135c6696fa781e8318c38c28aa03666fba git remote add niks https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git git fetch --no-tags niks dma_iommu_v3 git checkout 33d055135c6696fa781e8318c38c28aa03666fba # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/iommu/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/iommu/sun50i-iommu.c:839:35: error: initialization of 'int (*)(struct iommu_domain *, long unsigned int, size_t)' {aka 'int (*)(struct iommu_domain *, long unsigned int, unsigned int)'} from incompatible pointer type 'void (*)(struct iommu_domain *, long unsigned int, size_t)' {aka 'void (*)(struct iommu_domain *, long unsigned int, unsigned int)'} [-Werror=incompatible-pointer-types] 839 | .iotlb_sync_map = sun50i_iommu_iotlb_sync_map, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iommu/sun50i-iommu.c:839:35: note: (near initialization for '(anonymous).iotlb_sync_map') cc1: some warnings being treated as errors vim +839 drivers/iommu/sun50i-iommu.c 4100b8c229b328 Maxime Ripard 2020-05-13 828 79074f61c022e8 Rikard Falkeborn 2020-05-25 829 static const struct iommu_ops sun50i_iommu_ops = { 4100b8c229b328 Maxime Ripard 2020-05-13 830 .pgsize_bitmap = SZ_4K, 4100b8c229b328 Maxime Ripard 2020-05-13 831 .device_group = sun50i_iommu_device_group, 4100b8c229b328 Maxime Ripard 2020-05-13 832 .domain_alloc = sun50i_iommu_domain_alloc, 9a630a4b41a263 Lu Baolu 2022-02-16 833 .of_xlate = sun50i_iommu_of_xlate, 9a630a4b41a263 Lu Baolu 2022-02-16 834 .probe_device = sun50i_iommu_probe_device, 9a630a4b41a263 Lu Baolu 2022-02-16 835 .default_domain_ops = &(const struct iommu_domain_ops) { 9a630a4b41a263 Lu Baolu 2022-02-16 836 .attach_dev = sun50i_iommu_attach_device, 9a630a4b41a263 Lu Baolu 2022-02-16 837 .detach_dev = sun50i_iommu_detach_device, 4100b8c229b328 Maxime Ripard 2020-05-13 838 .flush_iotlb_all = sun50i_iommu_flush_iotlb_all, e563cc0c787c85 Jernej Skrabec 2022-10-25 @839 .iotlb_sync_map = sun50i_iommu_iotlb_sync_map, 4100b8c229b328 Maxime Ripard 2020-05-13 840 .iotlb_sync = sun50i_iommu_iotlb_sync, 4100b8c229b328 Maxime Ripard 2020-05-13 841 .iova_to_phys = sun50i_iommu_iova_to_phys, 4100b8c229b328 Maxime Ripard 2020-05-13 842 .map = sun50i_iommu_map, 4100b8c229b328 Maxime Ripard 2020-05-13 843 .unmap = sun50i_iommu_unmap, 9a630a4b41a263 Lu Baolu 2022-02-16 844 .free = sun50i_iommu_domain_free, 9a630a4b41a263 Lu Baolu 2022-02-16 845 } 4100b8c229b328 Maxime Ripard 2020-05-13 846 }; 4100b8c229b328 Maxime Ripard 2020-05-13 847 :::::: The code at line 839 was first introduced by commit :::::: e563cc0c787c85a4d9def0a77078dc5d3f445e3d iommu/sun50i: Implement .iotlb_sync_map :::::: TO: Jernej Skrabec :::::: CC: Joerg Roedel -- 0-DAY CI Kernel Test Service https://01.org/lkp