* [linux-next:master 11857/12841] arch/riscv/net/bpf_jit_comp64.c:462:5: error: no previous prototype for 'rv_bpf_fixup_exception'
@ 2021-10-31 17:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-31 17:17 UTC (permalink / raw)
To: Tong Tiangen; +Cc: kbuild-all, Linux Memory Management List, Daniel Borkmann
[-- Attachment #1: Type: text/plain, Size: 2036 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 71087 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-31 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 17:17 [linux-next:master 11857/12841] arch/riscv/net/bpf_jit_comp64.c:462:5: error: no previous prototype for 'rv_bpf_fixup_exception' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).