summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <bp@alien8.de>2024-02-03 13:40:48 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2024-02-03 13:41:41 +0300
commitf9e6f00d93d34f60f90b42c24e80194b11a72bb2 (patch)
treecc9d9c3036a059fc6db6184dcba7d462d40fdf2f /drivers/crypto
parent29956748339aa8757a7e2f927a8679dd08f24bb6 (diff)
downloadlinux-f9e6f00d93d34f60f90b42c24e80194b11a72bb2.tar.xz
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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202402031410.GTE3PJ1Y-lkp@intel.com Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/202402031410.GTE3PJ1Y-lkp@intel.com
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/ccp/sev-dev.c2
1 files changed, 1 insertions, 1 deletions
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)
{