[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b02f72c5-636d-2d4f-98d7-bf3741e38e5d@huawei.com>
Date: Sat, 24 Sep 2022 18:18:19 +0800
From: Li Zetao <lizetao1@...wei.com>
To: Borislav Petkov <bp@...en8.de>
CC: <tglx@...utronix.de>, <mingo@...hat.com>,
<dave.hansen@...ux.intel.com>, <x86@...nel.org>, <hpa@...or.com>,
<brijesh.singh@....com>, <michael.roth@....com>,
<venu.busireddy@...cle.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] x86/sev: Remove unused variable "err" in
enforce_vmpl0()
On 2022/9/23 20:19, Borislav Petkov wrote:
> 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.
My Compiler version is 11.2.0. I used the default .config and compiled
with flags "-Wall -Werror", just as follows:
make allmodconfig
make EXTRA_CFLAGS="-Wall -Werror"
Best regards
Li Zetao
Powered by blists - more mailing lists