* [yiliu1765-iommufd:wip/iommufd_pasid-20240626 1/31] drivers/iommu/intel/iommu.c:4367:20: error: incompatible function pointer types initializing 'int (*)(struct iommu_domain *, struct device *, ioasid_t, struct iommu_domain *)' (aka 'int (*)(struct iommu_domain *, struct device *, unsigned int, struct iomm...
@ 2024-06-27 5:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-27 5:18 UTC (permalink / raw)
To: Yi Liu, Kevin Tian; +Cc: oe-kbuild-all
tree: https://github.com/yiliu1765/iommufd.git wip/iommufd_pasid-20240626
head: fd569f167302f1d7a03199dae77450a22884fb93
commit: ad4c2a1ad5ea4662bb7b1a8b2839ca4eca59a05f [1/31] iommu: Pass old domain to set_dev_pasid op
config: i386-randconfig-013-20240627 (https://download.01.org/0day-ci/archive/20240627/202406271308.Irnc16c2-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240627/202406271308.Irnc16c2-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406271308.Irnc16c2-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/iommu/intel/iommu.c:4367:20: error: incompatible function pointer types initializing 'int (*)(struct iommu_domain *, struct device *, ioasid_t, struct iommu_domain *)' (aka 'int (*)(struct iommu_domain *, struct device *, unsigned int, struct iommu_domain *)') with an expression of type 'int (struct iommu_domain *, struct device *, ioasid_t)' (aka 'int (struct iommu_domain *, struct device *, unsigned int)') [-Wincompatible-function-pointer-types]
4367 | .set_dev_pasid = identity_domain_set_dev_pasid,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +4367 drivers/iommu/intel/iommu.c
46d417fe907d5c Lu Baolu 2024-06-01 4362
46d417fe907d5c Lu Baolu 2024-06-01 4363 static struct iommu_domain identity_domain = {
46d417fe907d5c Lu Baolu 2024-06-01 4364 .type = IOMMU_DOMAIN_IDENTITY,
46d417fe907d5c Lu Baolu 2024-06-01 4365 .ops = &(const struct iommu_domain_ops) {
46d417fe907d5c Lu Baolu 2024-06-01 4366 .attach_dev = identity_domain_attach_dev,
46d417fe907d5c Lu Baolu 2024-06-01 @4367 .set_dev_pasid = identity_domain_set_dev_pasid,
46d417fe907d5c Lu Baolu 2024-06-01 4368 },
46d417fe907d5c Lu Baolu 2024-06-01 4369 };
46d417fe907d5c Lu Baolu 2024-06-01 4370
:::::: The code at line 4367 was first introduced by commit
:::::: 46d417fe907d5c5ca3dae996fb2fc5b87870aba5 iommu/vt-d: Add support for static identity domain
:::::: TO: Lu Baolu <baolu.lu@linux.intel.com>
:::::: CC: Lu Baolu <baolu.lu@linux.intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-27 5:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27 5:18 [yiliu1765-iommufd:wip/iommufd_pasid-20240626 1/31] drivers/iommu/intel/iommu.c:4367:20: error: incompatible function pointer types initializing 'int (*)(struct iommu_domain *, struct device *, ioasid_t, struct iommu_domain *)' (aka 'int (*)(struct iommu_domain *, struct device *, unsigned int, struct iomm kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.