[arm-platforms:hack/arm64-early-cpufeature 12/18] arch/arm64/kernel/idreg-override.c:97:13: warning: no previous prototype for function 'init_shadow_regs'

kernel test robot lkp at intel.com
Mon Dec 28 09:13:58 EST 2020


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/arm64-early-cpufeature
head:   c78a06f2038a2d430effe8507a9da0477558954b
commit: 7947fab3bb9e4a186581a142fc1c1a550bc3f08e [12/18] arm64: cpufeature: Add an early command-line cpufeature override facility
config: arm64-randconfig-r032-20201228 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=7947fab3bb9e4a186581a142fc1c1a550bc3f08e
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms hack/arm64-early-cpufeature
        git checkout 7947fab3bb9e4a186581a142fc1c1a550bc3f08e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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/arm64/kernel/idreg-override.c:97:13: warning: no previous prototype for function 'init_shadow_regs' [-Wmissing-prototypes]
   void __init init_shadow_regs(void)
               ^
   arch/arm64/kernel/idreg-override.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init init_shadow_regs(void)
   ^
   static 
   1 warning generated.


vim +/init_shadow_regs +97 arch/arm64/kernel/idreg-override.c

    96	
  > 97	void __init init_shadow_regs(void)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 26430 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201228/7820b866/attachment-0001.gz>


More information about the linux-arm-kernel mailing list