[RFC PATCH joro] x86/compressed/64: sev_prep_identity_maps() can be static

From: kernel test robot
Date: Wed Nov 17 2021 - 15:49:18 EST


arch/x86/boot/compressed/ident_map_64.c:111:6: warning: symbol 'sev_prep_identity_maps' was not declared. Should it be static?

Fixes: 3ef653bfccaa ("x86/compressed/64: add identity mapping for Confidential Computing blob")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
ident_map_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/compressed/ident_map_64.c b/arch/x86/boot/compressed/ident_map_64.c
index 10ecbc53f8bc2..7087c3e27a6f0 100644
--- a/arch/x86/boot/compressed/ident_map_64.c
+++ b/arch/x86/boot/compressed/ident_map_64.c
@@ -108,7 +108,7 @@ static void add_identity_map(unsigned long start, unsigned long end)
error("Error: kernel_ident_mapping_init() failed\n");
}

-void sev_prep_identity_maps(void)
+static void sev_prep_identity_maps(void)
{
/*
* The ConfidentialComputing blob is used very early in uncompressed