From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [mark:arm64/kvm/fixes-redo 1/8] arch/arm64/kvm/hyp/include/hyp/switch.h:184:21: warning: unused variable 'kvm'
Date: Tue, 21 Jan 2025 08:13:52 +0800 [thread overview]
Message-ID: <202501210801.BKyLSKdq-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/kvm/fixes-redo
head: fc4f18e4b2156554c5481f7dc576c4dce0a7ed78
commit: a72566ddb55d7da9af1c68e0fa38b99f10329877 [1/8] WIP: KVM: arm64: unconditionally configure fine-grain traps
config: arm64-randconfig-001-20250121 (https://download.01.org/0day-ci/archive/20250121/202501210801.BKyLSKdq-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250121/202501210801.BKyLSKdq-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/202501210801.BKyLSKdq-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/arm64/kvm/hyp/vhe/switch.c:7:
arch/arm64/kvm/hyp/include/hyp/switch.h: In function '__deactivate_traps_hfgxtr':
>> arch/arm64/kvm/hyp/include/hyp/switch.h:184:21: warning: unused variable 'kvm' [-Wunused-variable]
184 | struct kvm *kvm = kern_hyp_va(vcpu->kvm);
| ^~~
vim +/kvm +184 arch/arm64/kvm/hyp/include/hyp/switch.h
ce4a36225753a1 Oliver Upton 2023-06-09 174
f5a5a406b4b8bb Marc Zyngier 2024-02-14 175 #define __deactivate_fgt(htcxt, vcpu, kvm, reg) \
f5a5a406b4b8bb Marc Zyngier 2024-02-14 176 do { \
f5a5a406b4b8bb Marc Zyngier 2024-02-14 177 write_sysreg_s(ctxt_sys_reg(hctxt, reg), \
f5a5a406b4b8bb Marc Zyngier 2024-02-14 178 SYS_ ## reg); \
f5a5a406b4b8bb Marc Zyngier 2024-02-14 179 } while(0)
f5a5a406b4b8bb Marc Zyngier 2024-02-14 180
e930694e6145eb Marc Zyngier 2023-08-15 181 static inline void __deactivate_traps_hfgxtr(struct kvm_vcpu *vcpu)
ce4a36225753a1 Oliver Upton 2023-06-09 182 {
87f842c6c6543c Marc Zyngier 2024-03-01 183 struct kvm_cpu_context *hctxt = host_data_ptr(host_ctxt);
f5a5a406b4b8bb Marc Zyngier 2024-02-14 @184 struct kvm *kvm = kern_hyp_va(vcpu->kvm);
ce4a36225753a1 Oliver Upton 2023-06-09 185
e930694e6145eb Marc Zyngier 2023-08-15 186 if (!cpus_have_final_cap(ARM64_HAS_FGT))
e930694e6145eb Marc Zyngier 2023-08-15 187 return;
ce4a36225753a1 Oliver Upton 2023-06-09 188
d196c20c6e5868 Marc Zyngier 2024-02-14 189 __deactivate_fgt(hctxt, vcpu, kvm, HFGRTR_EL2);
d196c20c6e5868 Marc Zyngier 2024-02-14 190 if (cpus_have_final_cap(ARM64_WORKAROUND_AMPERE_AC03_CPU_38))
e930694e6145eb Marc Zyngier 2023-08-15 191 write_sysreg_s(ctxt_sys_reg(hctxt, HFGWTR_EL2), SYS_HFGWTR_EL2);
d196c20c6e5868 Marc Zyngier 2024-02-14 192 else
d196c20c6e5868 Marc Zyngier 2024-02-14 193 __deactivate_fgt(hctxt, vcpu, kvm, HFGWTR_EL2);
f5a5a406b4b8bb Marc Zyngier 2024-02-14 194 __deactivate_fgt(hctxt, vcpu, kvm, HFGITR_EL2);
f5a5a406b4b8bb Marc Zyngier 2024-02-14 195 __deactivate_fgt(hctxt, vcpu, kvm, HDFGRTR_EL2);
f5a5a406b4b8bb Marc Zyngier 2024-02-14 196 __deactivate_fgt(hctxt, vcpu, kvm, HDFGWTR_EL2);
676f482354886c Fuad Tabba 2023-12-14 197
0ccd901da1886c Fuad Tabba 2023-12-14 198 if (cpu_has_amu())
f5a5a406b4b8bb Marc Zyngier 2024-02-14 199 __deactivate_fgt(hctxt, vcpu, kvm, HAFGRTR_EL2);
ce4a36225753a1 Oliver Upton 2023-06-09 200 }
ce4a36225753a1 Oliver Upton 2023-06-09 201
:::::: The code at line 184 was first introduced by commit
:::::: f5a5a406b4b8bb6c1fc7a1e92a872bd86061a53f KVM: arm64: Propagate and handle Fine-Grained UNDEF bits
:::::: TO: Marc Zyngier <maz@kernel.org>
:::::: CC: Oliver Upton <oliver.upton@linux.dev>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-01-21 0:14 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=202501210801.BKyLSKdq-lkp@intel.com \
--to=lkp@intel.com \
--cc=mark.rutland@arm.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.