arch/riscv/net/bpf_jit_comp.c:1662:47: error: 'BPF_JIT_REGION_START' undeclared; did you mean 'BPF_LWT_REROUTE'?
From: kbuild test robot
Date: Sat Feb 15 2020 - 00:31:34 EST
Hi Björn,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2019fc96af228b412bdb2e8e0ad4b1fc12046a51
commit: 7f3631e88ee6fb13beac333a0e9e605d2414d17f riscv, bpf: Provide RISC-V specific JIT image alloc/free
date: 8 weeks ago
config: riscv-randconfig-a001-20200215 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7f3631e88ee6fb13beac333a0e9e605d2414d17f
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
All error/warnings (new ones prefixed by >>):
arch/riscv/net/bpf_jit_comp.c: In function 'bpf_jit_alloc_exec':
>> arch/riscv/net/bpf_jit_comp.c:1662:47: error: 'BPF_JIT_REGION_START' undeclared (first use in this function); did you mean 'BPF_LWT_REROUTE'?
return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START,
^~~~~~~~~~~~~~~~~~~~
BPF_LWT_REROUTE
arch/riscv/net/bpf_jit_comp.c:1662:47: note: each undeclared identifier is reported only once for each function it appears in
>> arch/riscv/net/bpf_jit_comp.c:1663:9: error: 'BPF_JIT_REGION_END' undeclared (first use in this function); did you mean 'BPF_JIT_REGION_START'?
BPF_JIT_REGION_END, GFP_KERNEL,
^~~~~~~~~~~~~~~~~~
BPF_JIT_REGION_START
>> arch/riscv/net/bpf_jit_comp.c:1666:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +1662 arch/riscv/net/bpf_jit_comp.c
1659
1660 void *bpf_jit_alloc_exec(unsigned long size)
1661 {
> 1662 return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START,
> 1663 BPF_JIT_REGION_END, GFP_KERNEL,
1664 PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE,
1665 __builtin_return_address(0));
> 1666 }
1667
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip