arch/powerpc/mm/nohash/e500.c:314:21: warning: no previous prototype for 'relocate_init'

From: kernel test robot
Date: Fri Feb 17 2023 - 22:49:56 EST


Hi Christophe,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 38f8ccde04a3fa317b51b05e63c3cb57e1641931
commit: 3e7318584dfec11992f3ac45658c4bc1210b3778 powerpc: Remove CONFIG_PPC_FSL_BOOK3E
date: 5 months ago
config: powerpc-randconfig-r034-20230218 (https://download.01.org/0day-ci/archive/20230218/202302181136.wgyCKUcs-lkp@xxxxxxxxx/config)
compiler: powerpc-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=3e7318584dfec11992f3ac45658c4bc1210b3778
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3e7318584dfec11992f3ac45658c4bc1210b3778
# 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=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/mm/nohash/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202302181136.wgyCKUcs-lkp@xxxxxxxxx/

Note: functions only called from assembly code should be annotated with the asmlinkage attribute
All warnings (new ones prefixed by >>):

>> arch/powerpc/mm/nohash/e500.c:314:21: warning: no previous prototype for 'relocate_init' [-Wmissing-prototypes]
314 | notrace void __init relocate_init(u64 dt_ptr, phys_addr_t start)
| ^~~~~~~~~~~~~


vim +/relocate_init +314 arch/powerpc/mm/nohash/e500.c

dd189692d40948 arch/powerpc/mm/fsl_booke_mmu.c Kevin Hao 2013-12-24 311
dd189692d40948 arch/powerpc/mm/fsl_booke_mmu.c Kevin Hao 2013-12-24 312 #ifdef CONFIG_RELOCATABLE
7d2471f9fa8508 arch/powerpc/mm/fsl_booke_mmu.c Kevin Hao 2013-12-24 313 int __initdata is_second_reloc;
7d2471f9fa8508 arch/powerpc/mm/fsl_booke_mmu.c Kevin Hao 2013-12-24 @314 notrace void __init relocate_init(u64 dt_ptr, phys_addr_t start)

:::::: The code at line 314 was first introduced by commit
:::::: 7d2471f9fa85089beb1cb9436ffc28f9e11e518d powerpc/fsl_booke: make sure PAGE_OFFSET map to memstart_addr for relocatable kernel

:::::: TO: Kevin Hao <haokexin@xxxxxxxxx>
:::::: CC: Scott Wood <scottwood@xxxxxxxxxxxxx>

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