All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android17-6.18 2/2] drivers/iommu/intel/iommu.c:1122:14: warning: variable 'leaf_ptes_only' set but not used
Date: Thu, 11 Jun 2026 09:55:22 +0800	[thread overview]
Message-ID: <202606110955.gInPB9MK-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-06-11  1:55 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=202606110955.gInPB9MK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.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.