All of lore.kernel.org
 help / color / mirror / Atom feed
* [jgunthorpe:iommu_pt_vtd 32/40] drivers/iommu/iommu-pages.h:129:45: warning: cast from pointer to integer of different size
@ 2025-06-10  9:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-10  9:20 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: oe-kbuild-all

tree:   https://github.com/jgunthorpe/linux iommu_pt_vtd
head:   282698ed3a69e2f70fd682b369cf39c972c0bb2b
commit: ad56432cfa24006650b9487a6d476854af83321b [32/40] iommu/pages: Add support for a incoherent IOMMU page walker
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20250610/202506101725.ZGOeUtos-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250610/202506101725.ZGOeUtos-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/202506101725.ZGOeUtos-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/iommu/iommu-pages.c:6:
   drivers/iommu/iommu-pages.h: In function 'iommu_pages_flush_incoherent':
>> drivers/iommu/iommu-pages.h:129:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     129 |         dma_sync_single_for_device(dma_dev, (dma_addr_t)virt + offset, len,
         |                                             ^
--
   In file included from drivers/iommu/iommufd/selftest.c:16:
   drivers/iommu/iommufd/../iommu-pages.h: In function 'iommu_pages_flush_incoherent':
>> drivers/iommu/iommufd/../iommu-pages.h:129:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     129 |         dma_sync_single_for_device(dma_dev, (dma_addr_t)virt + offset, len,
         |                                             ^
--
   In file included from drivers/iommu/generic_pt/fmt/../iommu_pt.h:15,
                    from drivers/iommu/generic_pt/fmt/iommu_template.h:40,
                    from drivers/iommu/generic_pt/fmt/iommu_amdv1.c:15:
   drivers/iommu/generic_pt/fmt/../../iommu-pages.h: In function 'iommu_pages_flush_incoherent':
>> drivers/iommu/generic_pt/fmt/../../iommu-pages.h:129:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     129 |         dma_sync_single_for_device(dma_dev, (dma_addr_t)virt + offset, len,
         |                                             ^


vim +129 drivers/iommu/iommu-pages.h

   124	
   125	static inline void iommu_pages_flush_incoherent(struct device *dma_dev,
   126							void *virt, size_t offset,
   127							size_t len)
   128	{
 > 129		dma_sync_single_for_device(dma_dev, (dma_addr_t)virt + offset, len,
   130					   DMA_TO_DEVICE);
   131	}
   132	void iommu_pages_stop_incoherent_list(struct iommu_pages_list *list,
   133	                                      struct device *dma_dev);
   134	#endif
   135	

-- 
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:[~2025-06-10  9:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10  9:20 [jgunthorpe:iommu_pt_vtd 32/40] drivers/iommu/iommu-pages.h:129:45: warning: cast from pointer to integer of different size 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.