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

kernel test robot lkp at intel.com
Tue Dec 29 14:10:42 EST 2020


Hi Marc,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/arm64-early-cpufeature
head:   e18730d5383dc8d8dd27f0747a2c79124386a43f
commit: 7947fab3bb9e4a186581a142fc1c1a550bc3f08e [12/24] arm64: cpufeature: Add an early command-line cpufeature override facility
config: arm64-randconfig-r011-20201229 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a8970dff1aece1f83e63f723847098ba992ef185)
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: 31038 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201230/4416b3eb/attachment-0001.gz>


More information about the linux-arm-kernel mailing list