[openeuler:OLK-6.6 2331/2331] drivers/crypto/ccp/hygon/psp-dev.c:35:6: sparse: sparse: symbol 'psp_in_nowait_mode' was not declared. Should it be static?

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: fb62fea0a81a08823f133facca690b2f666a49ef commit: 3907486bfebfabd1b4cfcfd94fdb04d617e68db8 [2331/2331] crypto: ccp: support psp generic ringbuffer config: x86_64-randconfig-121-20250529 (https://download.01.org/0day-ci/archive/20250529/202505292025.Uqstjrf4-lkp@i...) 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/20250529/202505292025.Uqstjrf4-lkp@i...) 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/202505292025.Uqstjrf4-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/crypto/ccp/hygon/psp-dev.c:35:6: sparse: sparse: symbol 'psp_in_nowait_mode' was not declared. Should it be static? drivers/crypto/ccp/hygon/psp-dev.c:47:10: sparse: sparse: symbol 'atomic64_exchange' was not declared. Should it be static? drivers/crypto/ccp/hygon/psp-dev.c:52:5: sparse: sparse: symbol 'psp_mutex_init' was not declared. Should it be static?
vim +/psp_in_nowait_mode +35 drivers/crypto/ccp/hygon/psp-dev.c 34
35 bool psp_in_nowait_mode; 36 static struct psp_misc_dev *psp_misc; 37 #define HYGON_PSP_IOC_TYPE 'H' 38 enum HYGON_PSP_OPCODE { 39 HYGON_PSP_MUTEX_ENABLE = 1, 40 HYGON_PSP_MUTEX_DISABLE, 41 HYGON_VPSP_CTRL_OPT, 42 HYGON_PSP_OP_PIN_USER_PAGE, 43 HYGON_PSP_OP_UNPIN_USER_PAGE, 44 HYGON_PSP_OPCODE_MAX_NR, 45 }; 46
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot