All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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 17:35:20 +0800	[thread overview]
Message-ID: <202003311714.bO7yTK4V%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3084 bytes --]

Hi Luke,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 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/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ca6cb5447ceca6a87d6b62c9e5d41042c34f7ffa
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

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 identifier is reported only once for each function it appears in
>> arch/riscv/net/bpf_jit_comp64.c:1095:9: error: 'BPF_JIT_REGION_END' undeclared (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örn Töpel 2019-02-05  1091  
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16  1092  void *bpf_jit_alloc_exec(unsigned long size)
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16  1093  {
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16 @1094  	return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START,
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16 @1095  				    BPF_JIT_REGION_END, GFP_KERNEL,
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16  1096  				    PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE,
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16  1097  				    __builtin_return_address(0));
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-16  1098  }
7f3631e88ee6fb arch/riscv/net/bpf_jit_comp.c Björn Töpel 2019-12-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örn Töpel <bjorn.topel@gmail.com>
:::::: CC: Daniel Borkmann <daniel@iogearbox.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29464 bytes --]

             reply	other threads:[~2020-03-31  9:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-31  9:35 kbuild test robot [this message]
2020-03-31  9:47 ` [linux-next:master 5640/13335] arch/riscv/net/bpf_jit_comp64.c:1094:47: error: 'BPF_JIT_REGION_START' undeclared Daniel Borkmann
     [not found] <CAJ+HfNiBbQmgTtc03yJDt3mCwOJmhvhasTNhX_TKktY+dHjYRA@mail.gmail.com>
2020-03-31 15:49 ` Xi Wang
2020-03-31 16:46   ` Xi Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202003311714.bO7yTK4V%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.