From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2813241208985487974==" MIME-Version: 1.0 From: Daniel Borkmann To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 5640/13335] arch/riscv/net/bpf_jit_comp64.c:1094:47: error: 'BPF_JIT_REGION_START' undeclared Date: Tue, 31 Mar 2020 11:47:55 +0200 Message-ID: In-Reply-To: <202003311714.bO7yTK4V%lkp@intel.com> List-Id: --===============2813241208985487974== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 3/31/20 11:35 AM, kbuild test robot wrote: > Hi Luke, > = > First bad commit (maybe !=3D root cause): > = > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 3eb7cccdb3ae41ebb6a2f5f1ccd2821550c61fe1 > commit: ca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa [5640/13335] riscv, bpf:= Factor common RISC-V JIT code > config: riscv-randconfig-a001-20200331 (attached as .config) > compiler: riscv64-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sb= in/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout ca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa > # save the attached .config to linux build tree > GCC_VERSION=3D9.3.0 make.cross ARCH=3Driscv Luke or Bjorn, please take a look for fixing, thanks. > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > = > All errors (new ones prefixed by >>): > = > arch/riscv/net/bpf_jit_comp64.c: In function 'bpf_jit_alloc_exec': >>> arch/riscv/net/bpf_jit_comp64.c:1094:47: error: 'BPF_JIT_REGION_START' = undeclared (first use in this function) > 1094 | return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_= START, > | ^~~~~~~~~~~~~~~= ~~~~~ > arch/riscv/net/bpf_jit_comp64.c:1094:47: note: each undeclared identi= fier is reported only once for each function it appears in >>> arch/riscv/net/bpf_jit_comp64.c:1095:9: error: 'BPF_JIT_REGION_END' und= eclared (first use in this function) > 1095 | BPF_JIT_REGION_END, GFP_KERNEL, > | ^~~~~~~~~~~~~~~~~~ > arch/riscv/net/bpf_jit_comp64.c:1098:1: warning: control reaches end = of non-void function [-Wreturn-type] > 1098 | } > | ^ > = > vim +/BPF_JIT_REGION_START +1094 arch/riscv/net/bpf_jit_comp64.c > = > 2353ecc6f91fd1 arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-0= 2-05 1091 > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 1092 void *bpf_jit_alloc_exec(unsigned long size) > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 1093 { > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 @1094 return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_ST= ART, > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 @1095 BPF_JIT_REGION_END, GFP_KERNEL, > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 1096 PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE, > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 1097 __builtin_return_address(0)); > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 1098 } > 7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Bj=C3=B6rn T=C3=B6pel 2019-1= 2-16 1099 > = > :::::: The code at line 1094 was first introduced by commit > :::::: 7f3631e88ee6fb13beac333a0e9e605d2414d17f riscv, bpf: Provide RISC-= V specific JIT image alloc/free > = > :::::: TO: Bj=C3=B6rn T=C3=B6pel > :::::: CC: Daniel Borkmann > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org >=20 --===============2813241208985487974==--