* [android-common:android17-6.18 2/2] drivers/iommu/intel/iommu.c:1122:14: warning: variable 'leaf_ptes_only' set but not used
@ 2026-06-11 1:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-11 1:55 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Vineeth,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android17-6.18
head: 19f145cefca5621fd2dd6693def69fe1a476b2d7
commit: 019c99390aba092e5e9be673e096a2aaf5d07bf6 [2/2] ANDROID: iommu/vt-d: pKVM: Prevent host from donating DMA pages
config: x86_64-randconfig-012-20260611 (https://download.01.org/0day-ci/archive/20260611/202606110955.gInPB9MK-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/202606110955.gInPB9MK-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/202606110955.gInPB9MK-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/iommu/intel/iommu.c: In function 'domain_unmap':
>> drivers/iommu/intel/iommu.c:1122:14: warning: variable 'leaf_ptes_only' set but not used [-Wunused-but-set-variable]
1122 | bool leaf_ptes_only;
| ^~~~~~~~~~~~~~
vim +/leaf_ptes_only +1122 drivers/iommu/intel/iommu.c
1115
1116 /* We can't just free the pages because the IOMMU may still be walking
1117 the page tables, and may have cached the intermediate levels. The
1118 pages can only be freed after the IOTLB flush has been done. */
1119 void domain_unmap(struct dmar_domain *domain, unsigned long start_pfn,
1120 unsigned long last_pfn, struct iommu_pages_list *freelist)
1121 {
> 1122 bool leaf_ptes_only;
1123
1124 if (WARN_ON(!domain_pfn_supported(domain, last_pfn)) ||
1125 WARN_ON(start_pfn > last_pfn))
1126 return;
1127
1128 /* we don't need lock here; nobody else touches the iova range */
1129 leaf_ptes_only = dma_pte_clear_level(domain, agaw_to_level(domain->agaw),
1130 domain->pgd, 0, start_pfn, last_pfn, freelist);
1131
--
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:[~2026-06-11 1:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 1:55 [android-common:android17-6.18 2/2] drivers/iommu/intel/iommu.c:1122:14: warning: variable 'leaf_ptes_only' set but not used 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.