Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jgunthorpe:iommu_pt 19/22] drivers/iommu/amd/iommu.c:60:37: warning: unused variable 'amd_dirty_ops'
@ 2025-04-29 19:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-29 19:43 UTC (permalink / raw)
  To: Alejandro Jimenez; +Cc: llvm, oe-kbuild-all, Jason Gunthorpe

tree:   https://github.com/jgunthorpe/linux iommu_pt
head:   c1dec260d8b78443ef82054138c29a8d3d155a74
commit: ee6aae7327cd34c61889435908500dbce710d984 [19/22] iommu/amd: Use the generic iommu page table
config: x86_64-buildonly-randconfig-006-20250430 (https://download.01.org/0day-ci/archive/20250430/202504300300.5BmHwgTO-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250430/202504300300.5BmHwgTO-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/202504300300.5BmHwgTO-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/iommu/amd/iommu.c:60:37: warning: unused variable 'amd_dirty_ops' [-Wunused-const-variable]
      60 | static const struct iommu_dirty_ops amd_dirty_ops;
         |                                     ^~~~~~~~~~~~~
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for IOMMU_PT_AMDV1
   Depends on [n]: GENERIC_PT [=n] && IOMMU_PT [=n] && !GENERIC_ATOMIC64 [=n]
   Selected by [y]:
   - AMD_IOMMU [=y] && IOMMU_SUPPORT [=y] && X86_64 [=y] && PCI [=y] && ACPI [=y] && HAVE_CMPXCHG_DOUBLE [=y]
   WARNING: unmet direct dependencies detected for IOMMU_PT_X86_64
   Depends on [n]: GENERIC_PT [=n] && IOMMU_PT [=n] && !GENERIC_ATOMIC64 [=n]
   Selected by [y]:
   - AMD_IOMMU [=y] && IOMMU_SUPPORT [=y] && X86_64 [=y] && PCI [=y] && ACPI [=y] && HAVE_CMPXCHG_DOUBLE [=y]


vim +/amd_dirty_ops +60 drivers/iommu/amd/iommu.c

6efed63bec36e2 drivers/iommu/amd_iommu.c   Joerg Roedel 2012-06-14  58  
b0119e870837dc drivers/iommu/amd_iommu.c   Joerg Roedel 2017-02-01  59  const struct iommu_ops amd_iommu_ops;
9abe6c55354db3 drivers/iommu/amd/iommu.c   Kunwu Chan   2023-11-20 @60  static const struct iommu_dirty_ops amd_dirty_ops;
26961efe0dab9c arch/x86/kernel/amd_iommu.c Joerg Roedel 2008-12-03  61  

:::::: The code at line 60 was first introduced by commit
:::::: 9abe6c55354db38f0906fcaf4e1c1644c26cd624 iommu/amd: Set variable amd_dirty_ops to static

:::::: TO: Kunwu Chan <chentao@kylinos.cn>
:::::: CC: Joerg Roedel <jroedel@suse.de>

-- 
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-04-29 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 19:43 [jgunthorpe:iommu_pt 19/22] drivers/iommu/amd/iommu.c:60:37: warning: unused variable 'amd_dirty_ops' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox