x86/sev: Make boot_ghcb_page[] static
authorGUO Zihua <guozihua@huawei.com>
Wed, 2 Aug 2023 02:14:36 +0000 (10:14 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Oct 2023 13:31:27 +0000 (15:31 +0200)
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 <guozihua@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
arch/x86/boot/compressed/sev.c

index dc8c876fbd8f8f51c53a26237094dfd6580c8fe2..ba4868f416e458548fa8065839b0737c00bd8c84 100644 (file)
@@ -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;
 
 /*