tree:
git://git.infradead.org/users/hch/misc.git amd-iommu-cleanups.2
head: 7d6e5c6ac3134ba3b30070b40d534d35bdfe1ea4
commit: 7d6e5c6ac3134ba3b30070b40d534d35bdfe1ea4 [3/3] iommu/amd: move iommu v2 callbacks
into an ops structure
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc amd-iommu-cleanups.2
git checkout 7d6e5c6ac3134ba3b30070b40d534d35bdfe1ea4
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_iommu.c:296:21: error:
initialization of 'void (*)(struct pci_dev *, int)' from incompatible pointer type
'void (*)(struct pci_dev *, u32)' {aka 'void (*)(struct pci_dev *, unsigned
int)'} [-Werror=incompatible-pointer-types]
296 | .invalidate_ctx =
iommu_pasid_shutdown_callback,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_iommu.c:296:21: note: (near initialization for
'kfd_iommu_device_ops.invalidate_ctx')
> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_iommu.c:297:18: error:
initialization of 'int (*)(struct pci_dev *, int, long unsigned int, u16)' {aka
'int (*)(struct pci_dev *, int, long unsigned int, short unsigned int)'} from
incompatible pointer type 'int (*)(struct pci_dev *, u32, long unsigned int,
u16)' {aka 'int (*)(struct pci_dev *, unsigned int, long unsigned int, short
unsigned int)'} [-Werror=incompatible-pointer-types]
297 | .invalid_ppr =
iommu_invalid_ppr_cb,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_iommu.c:297:18: note: (near initialization for
'kfd_iommu_device_ops.invalid_ppr')
cc1: some warnings being treated as errors
vim +296 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_iommu.c
294
295 static const struct amd_iommu_device_ops kfd_iommu_device_ops = {
296 .invalidate_ctx = iommu_pasid_shutdown_callback,
297 .invalid_ppr = iommu_invalid_ppr_cb,
298 };
299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org