Messages in this thread Patch in this message | | | From | Li Zetao <> | Subject | [PATCH -next] x86/sev: Remove unused variable "err" in enforce_vmpl0() | Date | Fri, 23 Sep 2022 11:32:09 +0000 |
| |
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]
Fix it by removing the unused variable "err".
Fixes: 81cc3df9a90e ("x86/sev: Check the VMPL level") Signed-off-by: Li Zetao <lizetao1@huawei.com> --- arch/x86/boot/compressed/sev.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c index c93930d5ccbd..b9451761a69a 100644 --- a/arch/x86/boot/compressed/sev.c +++ b/arch/x86/boot/compressed/sev.c @@ -253,7 +253,6 @@ void do_boot_stage2_vc(struct pt_regs *regs, unsigned long exit_code) static void enforce_vmpl0(void) { u64 attrs; - int err; /* * RMPADJUST modifies RMP permissions of a lesser-privileged (numerically -- 2.34.1
| |