From: kernel test robot <lkp@intel.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jgunthorpe:iommu_pt_vtd 32/40] drivers/iommu/iommu-pages.h:129:45: warning: cast from pointer to integer of different size
Date: Tue, 10 Jun 2025 17:20:05 +0800 [thread overview]
Message-ID: <202506101725.ZGOeUtos-lkp@intel.com> (raw)
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
reply other threads:[~2025-06-10 9:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202506101725.ZGOeUtos-lkp@intel.com \
--to=lkp@intel.com \
--cc=jgg@nvidia.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.