tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: bdcc9f6a568275aed4cc32fd2312432d2ff1b704 commit: 252c765bd764a246a8bd516fabf6d6123df4a24f [11857/12841] riscv, bpf: Add BPF exception tables config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=252c765bd764a246a8bd516fabf6d6123df4a24f git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 252c765bd764a246a8bd516fabf6d6123df4a24f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> arch/riscv/net/bpf_jit_comp64.c:462:5: error: no previous prototype for 'rv_bpf_fixup_exception' [-Werror=missing-prototypes] 462 | int rv_bpf_fixup_exception(const struct exception_table_entry *ex, | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/rv_bpf_fixup_exception +462 arch/riscv/net/bpf_jit_comp64.c 461 > 462 int rv_bpf_fixup_exception(const struct exception_table_entry *ex, 463 struct pt_regs *regs) 464 { 465 off_t offset = FIELD_GET(BPF_FIXUP_OFFSET_MASK, ex->fixup); 466 int regs_offset = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup); 467 468 *(unsigned long *)((void *)regs + pt_regmap[regs_offset]) = 0; 469 regs->epc = (unsigned long)&ex->fixup - offset; 470 471 return 1; 472 } 473 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip