tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
quotaoff-cleanups-5.14
head: 6337f6e913ea464634f1582db813250e7be01438
commit: 5917b981c20de6ebc9bd1e44f7148b868c186627 [15/20] xfs: don't crash with
assfail
config: riscv-randconfig-c004-20210520 (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
#
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs quotaoff-cleanups-5.14
git checkout 5917b981c20de6ebc9bd1e44f7148b868c186627
# 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 errors (new ones prefixed by >>):
In file included from include/linux/kexec.h:28,
from include/linux/ima.h:13,
from fs/open.c:32:
> arch/riscv/include/asm/kexec.h:45:1: error: 'extern' is
not at beginning of declaration [-Werror=old-style-declaration]
45 | const
extern unsigned char riscv_kexec_relocate[];
| ^~~~~
arch/riscv/include/asm/kexec.h:46:1: error: 'extern' is not at beginning of
declaration [-Werror=old-style-declaration]
46 | const extern unsigned int riscv_kexec_relocate_size;
| ^~~~~
cc1: all warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER ||
MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/extern +45 arch/riscv/include/asm/kexec.h
fba8a8674f68a0 Nick Kossifidis 2021-04-19 44
fba8a8674f68a0 Nick Kossifidis 2021-04-19 @45 const extern unsigned char
riscv_kexec_relocate[];
fba8a8674f68a0 Nick Kossifidis 2021-04-19 46 const extern unsigned int
riscv_kexec_relocate_size;
fba8a8674f68a0 Nick Kossifidis 2021-04-19 47
:::::: The code at line 45 was first introduced by commit
:::::: fba8a8674f68a0628abae470dfcfbcb4a0d7a79e RISC-V: Add kexec support
:::::: TO: Nick Kossifidis <mick(a)ics.forth.gr>
:::::: CC: Palmer Dabbelt <palmerdabbelt(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org