Re: [PATCH -next] x86/sev: Remove unused variable "err" in enforce_vmpl0()

From: Borislav Petkov
Date: Fri Sep 23 2022 - 08:25:40 EST


On Fri, Sep 23, 2022 at 11:32:09AM +0000, Li Zetao wrote:
> Gcc report warning as follows:
>
> arch/x86/boot/compressed/sev.c: In function ‘enforce_vmpl0’:
> arch/x86/boot/compressed/sev.c:256:13: error: unused variable ‘err’
> [-Werror=unused-variable]

How do you trigger this? Compiler version and .config?

I haven't seen this one in any of my builds until now...

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette