[powerpc:next 26/63] arch/powerpc/math-emu/fre.c:6:5: warning: no previous prototype for 'fre'
From: kernel test robot <hidden>
Date: 2022-09-08 06:46:53
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next head: c28c2d4abdf95655001992c4f52dc243ba00cac3 commit: 7245fc5bb7a966852d5bd7779d1f5855530b461a [26/63] powerpc/math-emu: Remove -w build flag and fix warnings config: powerpc-randconfig-r004-20220907 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/powerpc/linux.git/commit/?id=7245fc5bb7a966852d5bd7779d1f5855530b461a git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git git fetch --no-tags powerpc next git checkout 7245fc5bb7a966852d5bd7779d1f5855530b461a # 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 SHELL=/bin/bash arch/powerpc/math-emu/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>):
quoted
arch/powerpc/math-emu/fre.c:6:5: warning: no previous prototype for 'fre' [-Wmissing-prototypes]
6 | int fre(void *frD, void *frB)
| ^~~
--quoted
arch/powerpc/math-emu/fsqrt.c:11:1: warning: no previous prototype for 'fsqrt' [-Wmissing-prototypes]
11 | fsqrt(void *frD, void *frB)
| ^~~~~
--quoted
arch/powerpc/math-emu/fsqrts.c:12:1: warning: no previous prototype for 'fsqrts' [-Wmissing-prototypes]
12 | fsqrts(void *frD, void *frB)
| ^~~~~~
--quoted
arch/powerpc/math-emu/frsqrtes.c:6:5: warning: no previous prototype for 'frsqrtes' [-Wmissing-prototypes]
6 | int frsqrtes(void *frD, void *frB)
| ^~~~~~~~
--quoted
arch/powerpc/math-emu/mtfsf.c:10:1: warning: no previous prototype for 'mtfsf' [-Wmissing-prototypes]
10 | mtfsf(unsigned int FM, u32 *frB)
| ^~~~~
--quoted
arch/powerpc/math-emu/mtfsfi.c:10:1: warning: no previous prototype for 'mtfsfi' [-Wmissing-prototypes]
10 | mtfsfi(unsigned int crfD, unsigned int IMM)
| ^~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
Selected by [y]:
- PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
vim +/fre +6 arch/powerpc/math-emu/fre.c
04ae9001719c3f Benjamin Herrenschmidt 2013-06-09 5
04ae9001719c3f Benjamin Herrenschmidt 2013-06-09 @6 int fre(void *frD, void *frB)
:::::: The code at line 6 was first introduced by commit
:::::: 04ae9001719c3f0012d239a7c5aa4136f6b6541d powerpc/math-emu: Fix decoding of some instructions
:::::: TO: Benjamin Herrenschmidt [off-list ref]
:::::: CC: Benjamin Herrenschmidt [off-list ref]
--
0-DAY CI Kernel Test Service
https://01.org/lkp