diff options
author | GUO Zihua <guozihua@huawei.com> | 2023-08-02 04:14:36 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-10-03 15:31:27 +0200 |
commit | bfb32e2008e278507bd93bff91662422d9cda9da (patch) | |
tree | 61c031efeae59a2c06b24e4d4aa2def0e3a4007b /arch/x86/boot | |
parent | x86/boot: Move x86_cache_alignment initialization to correct spot (diff) | |
download | linux-bfb32e2008e278507bd93bff91662422d9cda9da.tar.xz linux-bfb32e2008e278507bd93bff91662422d9cda9da.zip |
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
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/compressed/sev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c index dc8c876fbd8f..ba4868f416e4 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; /* |