From f9e6f00d93d34f60f90b42c24e80194b11a72bb2 Mon Sep 17 00:00:00 2001 From: "Borislav Petkov (AMD)" Date: Sat, 3 Feb 2024 11:40:48 +0100 Subject: crypto: ccp: Make snp_range_list static Fix: drivers/crypto/ccp/sev-dev.c:93:28: sparse: sparse: symbol 'snp_range_list' was not declared. Should it be static? Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402031410.GTE3PJ1Y-lkp@intel.com Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/202402031410.GTE3PJ1Y-lkp@intel.com --- drivers/crypto/ccp/sev-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/crypto') diff --git a/drivers/crypto/ccp/sev-dev.c b/drivers/crypto/ccp/sev-dev.c index f1a5795ffadb..182427f16ef8 100644 --- a/drivers/crypto/ccp/sev-dev.c +++ b/drivers/crypto/ccp/sev-dev.c @@ -107,7 +107,7 @@ static void *sev_init_ex_buffer; * Array containing range of pages that firmware transitions to HV-fixed * page state. */ -struct sev_data_range_list *snp_range_list; +static struct sev_data_range_list *snp_range_list; static inline bool sev_version_greater_or_equal(u8 maj, u8 min) { -- cgit v1.2.3