[openeuler:OLK-6.6 3075/3075] drivers/ub/ubus/services/ras.c:32:5: warning: no previous prototype for function 'cper_severity_to_ub_ras'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66984acf4b16f28a2cc0d5d6186b4b6bbfd92e26 commit: b16c9013e8adf3fbfb1f5a016785fd034c744a1c [3075/3075] ub:ubus: Support UBUS RAS capability config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251108/202511081317.igsm8YAI-lkp@i...) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251108/202511081317.igsm8YAI-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/202511081317.igsm8YAI-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/ub/ubus/services/ras.c:32:5: warning: no previous prototype for function 'cper_severity_to_ub_ras' [-Wmissing-prototypes] 32 | int cper_severity_to_ub_ras(int cper_severity) | ^ drivers/ub/ubus/services/ras.c:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 32 | int cper_severity_to_ub_ras(int cper_severity) | ^ | static drivers/ub/ubus/services/ras.c:272:6: warning: no previous prototype for function 'ub_ras_recover_queue' [-Wmissing-prototypes] 272 | void ub_ras_recover_queue(struct cper_sec_ubus *ubus_err, int severity) | ^ drivers/ub/ubus/services/ras.c:272:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 272 | void ub_ras_recover_queue(struct cper_sec_ubus *ubus_err, int severity) | ^ | static drivers/ub/ubus/services/ras.c:328:6: warning: no previous prototype for function 'ub_ras_init' [-Wmissing-prototypes] 328 | void ub_ras_init(void) | ^ drivers/ub/ubus/services/ras.c:328:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 328 | void ub_ras_init(void) | ^ | static drivers/ub/ubus/services/ras.c:333:6: warning: no previous prototype for function 'ub_ras_uninit' [-Wmissing-prototypes] 333 | void ub_ras_uninit(void) | ^ drivers/ub/ubus/services/ras.c:333:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 333 | void ub_ras_uninit(void) | ^ | static 4 warnings generated.
vim +/cper_severity_to_ub_ras +32 drivers/ub/ubus/services/ras.c 31
32 int cper_severity_to_ub_ras(int cper_severity) 33 { 34 switch (cper_severity) { 35 case CPER_SEV_FATAL: 36 return RAS_UC_FE; 37 case CPER_SEV_RECOVERABLE: 38 return RAS_UC_NFE; 39 default: 40 return RAS_CE; 41 } 42 } 43
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot