[jarkko-tpmdd:kprobes 3/3] arch/arm/kernel/module_alloc.c:24:7: warning: no previous prototype for 'module_alloc'

From: kernel test robot
Date: Fri Jun 10 2022 - 19:15:03 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git kprobes
head: 8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3
commit: 8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3 [3/3] kprobes: Enable tracing for mololithic kernel images
config: arm-trizeps4_defconfig (https://download.01.org/0day-ci/archive/20220611/202206110736.sXofukqb-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.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/jarkko/linux-tpmdd.git/commit/?id=8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3
git remote add jarkko-tpmdd git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
git fetch --no-tags jarkko-tpmdd kprobes
git checkout 8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/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/arm/kernel/module_alloc.c:24:7: warning: no previous prototype for 'module_alloc' [-Wmissing-prototypes]
24 | void *module_alloc(unsigned long size)
| ^~~~~~~~~~~~


vim +/module_alloc +24 arch/arm/kernel/module_alloc.c

22
23 #ifdef CONFIG_MMU
> 24 void *module_alloc(unsigned long size)

--
0-DAY CI Kernel Test Service
https://01.org/lkp