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

From: kernel test robot
Date: Fri Aug 12 2022 - 13:38:56 EST


Hi Ard,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7ebfc85e2cd7b08f518b526173e9a33b56b3913b
commit: fdfd42892f311e2b3695852036e5be23661dc590 jump_label: mips: move module NOP patching into arch code
date: 7 weeks ago
config: mips-randconfig-r001-20220812 (https://download.01.org/0day-ci/archive/20220813/202208130145.n64kApSL-lkp@xxxxxxxxx/config)
compiler: mips64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fdfd42892f311e2b3695852036e5be23661dc590
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout fdfd42892f311e2b3695852036e5be23661dc590
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/kernel/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> arch/mips/kernel/jump_label.c:93:6: warning: no previous prototype for 'jump_label_apply_nops' [-Wmissing-prototypes]
93 | void jump_label_apply_nops(struct module *mod)
| ^~~~~~~~~~~~~~~~~~~~~


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://01.org/lkp