[mark:arm64/alternatives/rework 15/18] arch/arm64/kernel/alternative.c:269:14: warning: no previous prototype for function 'alt_cb_patch_nops'
From: kernel test robot
Date: Tue Aug 23 2022 - 21:36:22 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/alternatives/rework
head: fad62c713602c963008575fd972d316569a32d12
commit: e5a9b245aeab3e0d83fbc7f9861351e8bb0e4823 [15/18] arm64: alternatives: add shared NOP callback
config: arm64-randconfig-r022-20220823 (https://download.01.org/0day-ci/archive/20220824/202208240946.qpIze2KD-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project b04d01c009d7f66bcca9138d2ce40999eedf104d)
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/mark/linux.git/commit/?id=e5a9b245aeab3e0d83fbc7f9861351e8bb0e4823
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark arm64/alternatives/rework
git checkout e5a9b245aeab3e0d83fbc7f9861351e8bb0e4823
# 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=arm64 SHELL=/bin/bash arch/arm64/kernel/ arch/arm64/mm/ kernel/
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/arm64/kernel/alternative.c:269:14: warning: no previous prototype for function 'alt_cb_patch_nops' [-Wmissing-prototypes]
noinstr void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr,
^
arch/arm64/kernel/alternative.c:269:9: note: declare 'static' if the function is not intended to be used outside of this translation unit
noinstr void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr,
^
static
1 warning generated.
vim +/alt_cb_patch_nops +269 arch/arm64/kernel/alternative.c
268
> 269 noinstr void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr,
--
0-DAY CI Kernel Test Service
https://01.org/lkp