[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181120232305.7jy5cragowvsihpq@ast-mbp.dhcp.thefacebook.com>
Date: Tue, 20 Nov 2018 15:23:06 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Yonghong Song <yhs@...com>
Cc: ast@...com, daniel@...earbox.net, netdev@...r.kernel.org,
kbuild-all@...org, kernel-team@...com,
Martin KaFai Lau <kafai@...com>
Subject: Re: [PATCH bpf-next v2] bpf: fix a compilation error when
CONFIG_BPF_SYSCALL is not defined
On Tue, Nov 20, 2018 at 02:08:20PM -0800, Yonghong Song wrote:
> Kernel test robot (lkp@...el.com) reports a compilation error at
> https://www.spinics.net/lists/netdev/msg534913.html
> introduced by commit 838e96904ff3 ("bpf: Introduce bpf_func_info").
>
> If CONFIG_BPF is defined and CONFIG_BPF_SYSCALL is not defined,
> the following error will appear:
> kernel/bpf/core.c:414: undefined reference to `btf_type_by_id'
> kernel/bpf/core.c:415: undefined reference to `btf_name_by_offset'
>
> When CONFIG_BPF_SYSCALL is not defined,
> let us define stub inline functions for btf_type_by_id()
> and btf_name_by_offset() in include/linux/btf.h.
> This way, the compilation failure can be avoided.
>
> Fixes: 838e96904ff3 ("bpf: Introduce bpf_func_info")
> Reported-by: kbuild test robot <lkp@...el.com>
> Cc: Martin KaFai Lau <kafai@...com>
> Signed-off-by: Yonghong Song <yhs@...com>
Applied, Thanks
Powered by blists - more mailing lists