[linux-next:master 4574/6188] arch/powerpc/math-emu/fre.c:6:5: warning: no previous prototype for function 'fre'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   47c191411b68a771261be3dc0bd6f68394cef358
commit: 7245fc5bb7a966852d5bd7779d1f5855530b461a [4574/6188] powerpc/math-emu: Remove -w build flag and fix warnings
config: powerpc-randconfig-r021-20220907 (https://download.01.org/0day-ci/archive/20220909/202209090343.JPAFJt74-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7245fc5bb7a966852d5bd7779d1f5855530b461a
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 7245fc5bb7a966852d5bd7779d1f5855530b461a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> arch/powerpc/math-emu/fre.c:6:5: warning: no previous prototype for function 'fre' [-Wmissing-prototypes]
   int fre(void *frD, void *frB)
       ^
   arch/powerpc/math-emu/fre.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int fre(void *frD, void *frB)
   ^
   static 
   1 warning generated.
--
>> arch/powerpc/math-emu/fsqrt.c:11:1: warning: no previous prototype for function 'fsqrt' [-Wmissing-prototypes]
   fsqrt(void *frD, void *frB)
   ^
   arch/powerpc/math-emu/fsqrt.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int
   ^
   static 
   1 warning generated.
--
>> arch/powerpc/math-emu/fsqrts.c:12:1: warning: no previous prototype for function 'fsqrts' [-Wmissing-prototypes]
   fsqrts(void *frD, void *frB)
   ^
   arch/powerpc/math-emu/fsqrts.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int
   ^
   static 
   1 warning generated.
--
>> arch/powerpc/math-emu/frsqrtes.c:6:5: warning: no previous prototype for function 'frsqrtes' [-Wmissing-prototypes]
   int frsqrtes(void *frD, void *frB)
       ^
   arch/powerpc/math-emu/frsqrtes.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int frsqrtes(void *frD, void *frB)
   ^
   static 
   1 warning generated.
--
>> arch/powerpc/math-emu/mtfsf.c:10:1: warning: no previous prototype for function 'mtfsf' [-Wmissing-prototypes]
   mtfsf(unsigned int FM, u32 *frB)
   ^
   arch/powerpc/math-emu/mtfsf.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int
   ^
   static 
   1 warning generated.
--
>> arch/powerpc/math-emu/mtfsfi.c:10:1: warning: no previous prototype for function 'mtfsfi' [-Wmissing-prototypes]
   mtfsfi(unsigned int crfD, unsigned int IMM)
   ^
   arch/powerpc/math-emu/mtfsfi.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int
   ^
   static 
   1 warning generated.


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 <benh@xxxxxxxxxxxxxxxxxxx>
:::::: CC: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux