From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12 1/1] drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-kvm.c:252:6: warning: variable 'ret' set but not used
Date: Fri, 27 Mar 2026 01:10:52 +0800 [thread overview]
Message-ID: <202603270130.EhJPI60i-lkp@intel.com> (raw)
Hi Mostafa,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/common android16-6.12
head: d73a8ddf419e5ee819fff624cf35bfedd85b5609
commit: e0abda8b771ca9dd97fd815b4be3bc9711fa3a5c [1/1] ANDROID: drivers/arm-smmu-v3-kvm: Modularize driver
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260327/202603270130.EhJPI60i-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260327/202603270130.EhJPI60i-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/202603270130.EhJPI60i-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-kvm.c:252:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
252 | int ret;
| ^
1 warning generated.
--
>> drivers/iommu/arm/arm-smmu-v3/pkvm/arm-smmu-v3.c:1360:5: warning: no previous prototype for function 'smmu_init_hyp_module' [-Wmissing-prototypes]
1360 | int smmu_init_hyp_module(const struct pkvm_module_ops *ops)
| ^
drivers/iommu/arm/arm-smmu-v3/pkvm/arm-smmu-v3.c:1360:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1360 | int smmu_init_hyp_module(const struct pkvm_module_ops *ops)
| ^
| static
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INTEL_MEI_ME
Depends on [n]: X86 && PCI [=y]
Selected by [m]:
- INTEL_MEI_HDCP [=m] && (DRM_I915 [=n] || DRM_XE [=m])
- INTEL_MEI_PXP [=m] && (DRM_I915 [=n] || DRM_XE [=m])
vim +/ret +252 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-kvm.c
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 249
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 250 static void kvm_arm_smmu_domain_free(struct iommu_domain *domain)
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 251 {
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 @252 int ret;
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 253 struct kvm_arm_smmu_domain *kvm_smmu_domain = to_kvm_smmu_domain(domain);
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 254 struct arm_smmu_device *smmu = kvm_smmu_domain->smmu;
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 255
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 256 if (smmu) {
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 257 ret = kvm_call_hyp_nvhe(__pkvm_host_iommu_free_domain, kvm_smmu_domain->id);
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 258 ida_free(&kvm_arm_smmu_domain_ida, kvm_smmu_domain->id);
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 259 }
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 260 kfree(kvm_smmu_domain);
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 261 }
6cb3ecc7be2f63 Mostafa Saleh 2024-12-12 262
:::::: The code at line 252 was first introduced by commit
:::::: 6cb3ecc7be2f6315e496f59b1966a2b515dfc776 BACKPORT: FROMLIST: iommu/arm-smmu-v3-kvm: Add IOMMU ops
:::::: TO: Mostafa Saleh <smostafa@google.com>
:::::: CC: Mostafa Saleh <smostafa@google.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-26 17:11 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=202603270130.EhJPI60i-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.