[openeuler:OLK-6.6 3542/3542] drivers/crypto/ccp/hygon/vpsp.c:1055:5: warning: no previous prototype for function 'vpsp_do_cmd'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 04473ee9ed912a16fff0d8846ad565bbf3d63c77 commit: e2861aaa47961017ada7f66de11104bbf3b85eb1 [3542/3542] crypto: ccp: move vpsp-related functions to vpsp.c config: x86_64-randconfig-012-20251215 (https://download.01.org/0day-ci/archive/20251221/202512210938.tNGRHg5O-lkp@i...) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251221/202512210938.tNGRHg5O-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/202512210938.tNGRHg5O-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/crypto/ccp/hygon/vpsp.c:589:6: warning: no previous prototype for function 'vpsp_set_default_vid_permission' [-Wmissing-prototypes] 589 | void vpsp_set_default_vid_permission(uint32_t is_allow) | ^ drivers/crypto/ccp/hygon/vpsp.c:589:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 589 | void vpsp_set_default_vid_permission(uint32_t is_allow) | ^ | static
drivers/crypto/ccp/hygon/vpsp.c:1055:5: warning: no previous prototype for function 'vpsp_do_cmd' [-Wmissing-prototypes] 1055 | int vpsp_do_cmd(int cmd, phys_addr_t phy_addr, int *psp_ret) | ^ drivers/crypto/ccp/hygon/vpsp.c:1055:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1055 | int vpsp_do_cmd(int cmd, phys_addr_t phy_addr, int *psp_ret) | ^ | static 2 warnings generated.
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PTP_1588_CLOCK Depends on [n]: NET [=y] && POSIX_TIMERS [=n] Selected by [m]: - SXE [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] - SXE_VF [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] vim +/vpsp_do_cmd +1055 drivers/crypto/ccp/hygon/vpsp.c 1054
1055 int vpsp_do_cmd(int cmd, phys_addr_t phy_addr, int *psp_ret) 1056 { 1057 int rc; 1058 int mutex_enabled = READ_ONCE(hygon_psp_hooks.psp_mutex_enabled); 1059 1060 if (!hygon_psp_hooks.sev_dev_hooks_installed) 1061 return -ENODEV; 1062 1063 if (mutex_enabled) { 1064 if (psp_mutex_lock_timeout(&hygon_psp_hooks.psp_misc->data_pg_aligned->mb_mutex, 1065 PSP_MUTEX_TIMEOUT) != 1) { 1066 return -EBUSY; 1067 } 1068 } else { 1069 mutex_lock(hygon_psp_hooks.sev_cmd_mutex); 1070 } 1071 1072 rc = __vpsp_do_cmd_locked(cmd, phy_addr, psp_ret); 1073 1074 if (mutex_enabled) 1075 psp_mutex_unlock(&hygon_psp_hooks.psp_misc->data_pg_aligned->mb_mutex); 1076 else 1077 mutex_unlock(hygon_psp_hooks.sev_cmd_mutex); 1078 1079 return rc; 1080 } 1081
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot