[PATCH] KVM: arm64: avoid unused-variable warning

Marc Zyngier maz at kernel.org
Tue Mar 17 02:17:43 PDT 2026


On Fri, 13 Mar 2026 10:49:16 +0100, Arnd Bergmann wrote:
> The 'cpu' variable is only used inside of an #ifdef block and causes
> a warning if there is no user:
> 
> arch/arm64/kvm/hyp_trace.c: In function 'kvm_hyp_trace_init':
> arch/arm64/kvm/hyp_trace.c:422:13: error: unused variable 'cpu' [-Werror=unused-variable]
>   422 |         int cpu;
>       |             ^~~
> 
> [...]

Applied to next, thanks!

[1/1] KVM: arm64: avoid unused-variable warning
      commit: 8510d054b7e086a71a9191ac3399231290dfd272

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.





More information about the linux-arm-kernel mailing list