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

From: Marc Zyngier

Date: Tue Mar 17 2026 - 05:22:52 EST


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.