arch/mips/kernel/jump_label.c:93:6: warning: no previous prototype for function 'jump_label_apply_nops'

From: kernel test robot
Date: Fri Jul 28 2023 - 22:22:10 EST


Hi Ard,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 122e7943b252fcf48b4d085dec084e24fc8bec45
commit: fdfd42892f311e2b3695852036e5be23661dc590 jump_label: mips: move module NOP patching into arch code
date: 1 year, 1 month ago
config: mips-randconfig-r024-20230729 (https://download.01.org/0day-ci/archive/20230729/202307291002.3EsIxC16-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230729/202307291002.3EsIxC16-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307291002.3EsIxC16-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> arch/mips/kernel/jump_label.c:93:6: warning: no previous prototype for function 'jump_label_apply_nops' [-Wmissing-prototypes]
93 | void jump_label_apply_nops(struct module *mod)
| ^
arch/mips/kernel/jump_label.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
93 | void jump_label_apply_nops(struct module *mod)
| ^
| static
1 warning generated.


vim +/jump_label_apply_nops +93 arch/mips/kernel/jump_label.c

91
92 #ifdef CONFIG_MODULES
> 93 void jump_label_apply_nops(struct module *mod)

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