[soc:multiplatform-misc-5.18 12/13] arch/arm/mach-orion/board-d2net.c:102:13: warning: no previous prototype for function 'd2net_init'

kernel test robot lkp at intel.com
Tue Apr 5 05:19:14 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git multiplatform-misc-5.18
head:   a2677c00b0f03b8cad961f785941ca257f454df3
commit: 4e61a655e496f6225a146264a3dbc94c790870a6 [12/13] ARM: orion/mv78xx0/dove: move to a common directory
config: arm-mvebu_v5_defconfig (https://download.01.org/0day-ci/archive/20220405/202204052037.UnjBcCI3-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?id=4e61a655e496f6225a146264a3dbc94c790870a6
        git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
        git fetch --no-tags soc multiplatform-misc-5.18
        git checkout 4e61a655e496f6225a146264a3dbc94c790870a6
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> arch/arm/mach-orion/board-d2net.c:102:13: warning: no previous prototype for function 'd2net_init' [-Wmissing-prototypes]
   void __init d2net_init(void)
               ^
   arch/arm/mach-orion/board-d2net.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init d2net_init(void)
   ^
   static 
   1 warning generated.


vim +/d2net_init +102 arch/arm/mach-orion/board-d2net.c

94b0bd366e3637 arch/arm/mach-orion5x/board-d2net.c Thomas Petazzoni 2014-04-22   97  
94b0bd366e3637 arch/arm/mach-orion5x/board-d2net.c Thomas Petazzoni 2014-04-22   98  /*****************************************************************************
94b0bd366e3637 arch/arm/mach-orion5x/board-d2net.c Thomas Petazzoni 2014-04-22   99   * General Setup
94b0bd366e3637 arch/arm/mach-orion5x/board-d2net.c Thomas Petazzoni 2014-04-22  100   ****************************************************************************/
94b0bd366e3637 arch/arm/mach-orion5x/board-d2net.c Thomas Petazzoni 2014-04-22  101  
94b0bd366e3637 arch/arm/mach-orion5x/board-d2net.c Thomas Petazzoni 2014-04-22 @102  void __init d2net_init(void)

:::::: The code at line 102 was first introduced by commit
:::::: 94b0bd366e36379c994bdaa84f18355702212eb4 ARM: orion5x: convert d2net to Device Tree

:::::: TO: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
:::::: CC: Jason Cooper <jason at lakedaemon.net>

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



More information about the linux-arm-kernel mailing list