tree:
https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git for-next
head: 04d2b1ac88e94574429a62839bc0e982cebb854c
commit: f85daef543eb3e98e28905ddb813151443911571 [11/12] RISC-V: Add kexec support
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
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
git checkout f85daef543eb3e98e28905ddb813151443911571
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/kexec.h:28,
from arch/riscv/kernel/machine_kexec.c:7:
> arch/riscv/include/asm/kexec.h:38:1: warning: 'extern' is
not at beginning of declaration [-Wold-style-declaration]
38 | const extern
unsigned char riscv_kexec_relocate[];
| ^~~~~
arch/riscv/include/asm/kexec.h:39:1: warning: 'extern' is not at beginning of
declaration [-Wold-style-declaration]
39 | const extern unsigned int riscv_kexec_relocate_size;
| ^~~~~
> arch/riscv/kernel/machine_kexec.c:128:6: warning: no previous
prototype for 'machine_shutdown' [-Wmissing-prototypes]
128 | void
machine_shutdown(void)
| ^~~~~~~~~~~~~~~~
> arch/riscv/kernel/machine_kexec.c:150:1: warning: no previous
prototype for 'machine_crash_shutdown' [-Wmissing-prototypes]
150 |
machine_crash_shutdown(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/extern +38 arch/riscv/include/asm/kexec.h
37
38 const extern unsigned char riscv_kexec_relocate[];
39 const extern unsigned int riscv_kexec_relocate_size;
40
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org