Skip to content

Commit bfb32e2

Browse files
GUO Zihuaingomolnar
authored andcommitted
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 <guozihua@huawei.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: linux-kernel@vger.kernel.org
1 parent 3e32552 commit bfb32e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/x86/boot/compressed

arch/x86/boot/compressed/sev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "error.h"
2626
#include "../msr.h"
2727

28-
struct ghcb boot_ghcb_page __aligned(PAGE_SIZE);
28+
static struct ghcb boot_ghcb_page __aligned(PAGE_SIZE);
2929
struct ghcb *boot_ghcb;
3030

3131
/*

0 commit comments

Comments
 (0)