mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:x86/sev 16/29] drivers/crypto/ccp/sev-dev.c:93:28: sparse: sparse: symbol 'snp_range_list' was not declared. Should it be static?
@ 2024-02-03  6:04 kernel test robot
  2024-02-03 10:50 ` [tip: x86/sev] crypto: ccp: Make snp_range_list static tip-bot2 for Borislav Petkov (AMD)
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-02-03  6:04 UTC (permalink / raw)
  To: Brijesh Singh
  Cc: oe-kbuild-all, linux-kernel, x86, Borislav Petkov (AMD),
	Ashish Kalra, Jarkko Sakkinen, Tom Lendacky, Michael Roth

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/sev
head:   1bfca8d2800ab5ef0dfed335a2a29d1632c99411
commit: 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 [16/29] crypto: ccp: Add support to initialize the AMD-SP for SEV-SNP
config: x86_64-randconfig-r131-20240203 (https://download.01.org/0day-ci/archive/20240203/202402031410.GTE3PJ1Y-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240203/202402031410.GTE3PJ1Y-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402031410.GTE3PJ1Y-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/ccp/sev-dev.c:93:28: sparse: sparse: symbol 'snp_range_list' was not declared. Should it be static?

vim +/snp_range_list +93 drivers/crypto/ccp/sev-dev.c

    87	
    88	/*
    89	 * SEV_DATA_RANGE_LIST:
    90	 *   Array containing range of pages that firmware transitions to HV-fixed
    91	 *   page state.
    92	 */
  > 93	struct sev_data_range_list *snp_range_list;
    94	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip: x86/sev] crypto: ccp: Make snp_range_list static
  2024-02-03  6:04 [tip:x86/sev 16/29] drivers/crypto/ccp/sev-dev.c:93:28: sparse: sparse: symbol 'snp_range_list' was not declared. Should it be static? kernel test robot
@ 2024-02-03 10:50 ` tip-bot2 for Borislav Petkov (AMD)
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Borislav Petkov (AMD) @ 2024-02-03 10:50 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: kernel test robot, Borislav Petkov (AMD), x86, linux-kernel

The following commit has been merged into the x86/sev branch of tip:

Commit-ID:     f9e6f00d93d34f60f90b42c24e80194b11a72bb2
Gitweb:        https://git.kernel.org/tip/f9e6f00d93d34f60f90b42c24e80194b11a72bb2
Author:        Borislav Petkov (AMD) <bp@alien8.de>
AuthorDate:    Sat, 03 Feb 2024 11:40:48 +01:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Sat, 03 Feb 2024 11:41:41 +01:00

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
---
 drivers/crypto/ccp/sev-dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccp/sev-dev.c b/drivers/crypto/ccp/sev-dev.c
index f1a5795..182427f 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)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-03 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-03  6:04 [tip:x86/sev 16/29] drivers/crypto/ccp/sev-dev.c:93:28: sparse: sparse: symbol 'snp_range_list' was not declared. Should it be static? kernel test robot
2024-02-03 10:50 ` [tip: x86/sev] crypto: ccp: Make snp_range_list static tip-bot2 for Borislav Petkov (AMD)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®