* [jgunthorpe:for-nicolin 18/28] drivers/iommu/ipmmu-vmsa.c:599:22: warning: unused variable 'i'
@ 2025-09-30 6:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-30 6:59 UTC (permalink / raw)
To: Nicolin Chen; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-30 7:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30 6:59 [jgunthorpe:for-nicolin 18/28] drivers/iommu/ipmmu-vmsa.c:599:22: warning: unused variable 'i' 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.