iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [iommu:x86/vt-d 10/12] drivers/iommu/intel/iommu.c:5468:21: error: initialization of 'void iommu_domain from incompatible pointer type 'void iommu_domain long unsigned int, size_t)' {aka 'void iommu_domain long unsigned int, long uns...
@ 2021-02-10 18:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-10 18:50 UTC (permalink / raw)
  To: Lu Baolu; +Cc: Chuck Lever, iommu, Joerg Roedel, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3619 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git x86/vt-d
head:   31a75cbbb9274cf8185f402904bf11386917870b
commit: 933fcd01e97e2ba29880dd5f1239365e40094950 [10/12] iommu/vt-d: Add iotlb_sync_map callback
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/commit/?id=933fcd01e97e2ba29880dd5f1239365e40094950
        git remote add iommu https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
        git fetch --no-tags iommu x86/vt-d
        git checkout 933fcd01e97e2ba29880dd5f1239365e40094950
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/iommu/intel/iommu.c:5468:21: error: initialization of 'void (*)(struct iommu_domain *)' from incompatible pointer type 'void (*)(struct iommu_domain *, long unsigned int,  size_t)' {aka 'void (*)(struct iommu_domain *, long unsigned int,  long unsigned int)'} [-Werror=incompatible-pointer-types]
    5468 |  .iotlb_sync_map  = intel_iommu_iotlb_sync_map,
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/intel/iommu.c:5468:21: note: (near initialization for 'intel_iommu_ops.iotlb_sync_map')
   cc1: some warnings being treated as errors


vim +5468 drivers/iommu/intel/iommu.c

  5455	
  5456	const struct iommu_ops intel_iommu_ops = {
  5457		.capable		= intel_iommu_capable,
  5458		.domain_alloc		= intel_iommu_domain_alloc,
  5459		.domain_free		= intel_iommu_domain_free,
  5460		.domain_get_attr        = intel_iommu_domain_get_attr,
  5461		.domain_set_attr	= intel_iommu_domain_set_attr,
  5462		.attach_dev		= intel_iommu_attach_device,
  5463		.detach_dev		= intel_iommu_detach_device,
  5464		.aux_attach_dev		= intel_iommu_aux_attach_device,
  5465		.aux_detach_dev		= intel_iommu_aux_detach_device,
  5466		.aux_get_pasid		= intel_iommu_aux_get_pasid,
  5467		.map			= intel_iommu_map,
> 5468		.iotlb_sync_map		= intel_iommu_iotlb_sync_map,
  5469		.unmap			= intel_iommu_unmap,
  5470		.flush_iotlb_all        = intel_flush_iotlb_all,
  5471		.iotlb_sync		= intel_iommu_tlb_sync,
  5472		.iova_to_phys		= intel_iommu_iova_to_phys,
  5473		.probe_device		= intel_iommu_probe_device,
  5474		.probe_finalize		= intel_iommu_probe_finalize,
  5475		.release_device		= intel_iommu_release_device,
  5476		.get_resv_regions	= intel_iommu_get_resv_regions,
  5477		.put_resv_regions	= generic_iommu_put_resv_regions,
  5478		.device_group		= intel_iommu_device_group,
  5479		.dev_has_feat		= intel_iommu_dev_has_feat,
  5480		.dev_feat_enabled	= intel_iommu_dev_feat_enabled,
  5481		.dev_enable_feat	= intel_iommu_dev_enable_feat,
  5482		.dev_disable_feat	= intel_iommu_dev_disable_feat,
  5483		.is_attach_deferred	= intel_iommu_is_attach_deferred,
  5484		.def_domain_type	= device_def_domain_type,
  5485		.pgsize_bitmap		= INTEL_IOMMU_PGSIZES,
  5486	#ifdef CONFIG_INTEL_IOMMU_SVM
  5487		.cache_invalidate	= intel_iommu_sva_invalidate,
  5488		.sva_bind_gpasid	= intel_svm_bind_gpasid,
  5489		.sva_unbind_gpasid	= intel_svm_unbind_gpasid,
  5490		.sva_bind		= intel_svm_bind,
  5491		.sva_unbind		= intel_svm_unbind,
  5492		.sva_get_pasid		= intel_svm_get_pasid,
  5493		.page_response		= intel_svm_page_response,
  5494	#endif
  5495	};
  5496	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41503 bytes --]

[-- Attachment #3: Type: text/plain, Size: 156 bytes --]

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-10 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 18:50 [iommu:x86/vt-d 10/12] drivers/iommu/intel/iommu.c:5468:21: error: initialization of 'void iommu_domain from incompatible pointer type 'void iommu_domain long unsigned int, size_t)' {aka 'void iommu_domain long unsigned int, long uns kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).