From: kernel test robot <lkp@intel.com>
To: Nicolin Chen <nicolinc@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jgunthorpe:for-nicolin 18/28] drivers/iommu/ipmmu-vmsa.c:599:22: warning: unused variable 'i'
Date: Tue, 30 Sep 2025 14:59:40 +0800 [thread overview]
Message-ID: <202509301444.YSicwMA6-lkp@intel.com> (raw)
tree: https://github.com/jgunthorpe/linux for-nicolin
head: 88dcad1e4861f296ede23d6aa870ccedb3033a8b
commit: 6592e9df15aadae830e2a3bfd156879310d16666 [18/28] iommu/ipmmu-vmsa: Implement ipmmu_domain_test_device
config: x86_64-buildonly-randconfig-002-20250930 (https://download.01.org/0day-ci/archive/20250930/202509301444.YSicwMA6-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/20250930/202509301444.YSicwMA6-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/202509301444.YSicwMA6-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/iommu/ipmmu-vmsa.c: In function 'ipmmu_domain_test_device':
>> drivers/iommu/ipmmu-vmsa.c:599:22: warning: unused variable 'i' [-Wunused-variable]
599 | unsigned int i;
| ^
>> drivers/iommu/ipmmu-vmsa.c:596:30: warning: unused variable 'fwspec' [-Wunused-variable]
596 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev);
| ^~~~~~
vim +/i +599 drivers/iommu/ipmmu-vmsa.c
d25a2a16f0889de Laurent Pinchart 2014-04-02 591
6592e9df15aadae Nicolin Chen 2025-09-25 592 static int ipmmu_domain_test_device(struct iommu_domain *io_domain,
6592e9df15aadae Nicolin Chen 2025-09-25 593 struct device *dev, ioasid_t pasid,
6592e9df15aadae Nicolin Chen 2025-09-25 594 struct iommu_domain *old)
d25a2a16f0889de Laurent Pinchart 2014-04-02 595 {
df90365580623b5 Joerg Roedel 2018-11-29 @596 struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev);
e4efe4a9a2ace65 Robin Murphy 2017-10-13 597 struct ipmmu_vmsa_device *mmu = to_ipmmu(dev);
5914c5fdde92660 Joerg Roedel 2015-03-26 598 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain);
a166d31ee56e8fc Laurent Pinchart 2014-07-24 @599 unsigned int i;
d25a2a16f0889de Laurent Pinchart 2014-04-02 600
e4efe4a9a2ace65 Robin Murphy 2017-10-13 601 if (!mmu) {
6592e9df15aadae Nicolin Chen 2025-09-25 602 dev_dbg(dev, "Cannot attach to IPMMU\n");
d25a2a16f0889de Laurent Pinchart 2014-04-02 603 return -ENXIO;
d25a2a16f0889de Laurent Pinchart 2014-04-02 604 }
d25a2a16f0889de Laurent Pinchart 2014-04-02 605
6592e9df15aadae Nicolin Chen 2025-09-25 606 scoped_guard(mutex, &domain->mutex) {
6592e9df15aadae Nicolin Chen 2025-09-25 607 /*
6592e9df15aadae Nicolin Chen 2025-09-25 608 * Something is wrong, we can't attach two devices using different
6592e9df15aadae Nicolin Chen 2025-09-25 609 * IOMMUs to the same domain.
6592e9df15aadae Nicolin Chen 2025-09-25 610 */
6592e9df15aadae Nicolin Chen 2025-09-25 611 if (domain->mmu && domain->mmu != mmu)
6592e9df15aadae Nicolin Chen 2025-09-25 612 return -EINVAL;
6592e9df15aadae Nicolin Chen 2025-09-25 613 }
6592e9df15aadae Nicolin Chen 2025-09-25 614
6592e9df15aadae Nicolin Chen 2025-09-25 615 return 0;
6592e9df15aadae Nicolin Chen 2025-09-25 616 }
6592e9df15aadae Nicolin Chen 2025-09-25 617
:::::: The code at line 599 was first introduced by commit
:::::: a166d31ee56e8fc56ce2497d8de9da5359f4ee41 iommu/ipmmu-vmsa: Support multiple micro TLBs per device
:::::: TO: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
:::::: CC: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-09-30 7:00 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=202509301444.YSicwMA6-lkp@intel.com \
--to=lkp@intel.com \
--cc=nicolinc@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.