From: kernel test robot <lkp@intel.com>
To: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Jason Gunthorpe <jgg@ziepe.ca>
Subject: [jgunthorpe:iommu_pt 19/22] drivers/iommu/amd/iommu.c:60:37: warning: unused variable 'amd_dirty_ops'
Date: Wed, 30 Apr 2025 03:43:34 +0800 [thread overview]
Message-ID: <202504300300.5BmHwgTO-lkp@intel.com> (raw)
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
reply other threads:[~2025-04-29 19:44 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=202504300300.5BmHwgTO-lkp@intel.com \
--to=lkp@intel.com \
--cc=alejandro.j.jimenez@oracle.com \
--cc=jgg@ziepe.ca \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox