From: GUO Zihua Date: Wed, 2 Aug 2023 02:14:36 +0000 (+0800) Subject: x86/sev: Make boot_ghcb_page[] static X-Git-Tag: v6.7-rc1~184^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfb32e2008e278507bd93bff91662422d9cda9da;p=thirdparty%2Flinux.git x86/sev: Make boot_ghcb_page[] static boot_ghcb_page is not used by any other file, so make it static. This also resolves sparse warning: arch/x86/boot/compressed/sev.c:28:13: warning: symbol 'boot_ghcb_page' was not declared. Should it be static? Signed-off-by: GUO Zihua Signed-off-by: Ingo Molnar Cc: linux-kernel@vger.kernel.org --- diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c index dc8c876fbd8f8..ba4868f416e45 100644 --- a/arch/x86/boot/compressed/sev.c +++ b/arch/x86/boot/compressed/sev.c @@ -25,7 +25,7 @@ #include "error.h" #include "../msr.h" -struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); +static struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); struct ghcb *boot_ghcb; /*