On Tue, Nov 20, 2018 at 02:08:20PM -0800, Yonghong Song wrote: > Kernel test robot (l...@intel.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 <l...@intel.com> > Cc: Martin KaFai Lau <ka...@fb.com> > Signed-off-by: Yonghong Song <y...@fb.com>
Applied, Thanks