tree:
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git bpf_tramp
head: 79342704f7a85cae631373124998449f047fa0f1
commit: 1d5c082bc909135b1e206a34e0cfcd57d29dbd62 [4/6] bpf: introduce BPF trampoline
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.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 1d5c082bc909135b1e206a34e0cfcd57d29dbd62
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/bpf/syscall.c: In function 'fentry_hack':
> kernel/bpf/syscall.c:1822:2: error: implicit declaration of
function 'ftrace_arch_code_modify_prepare'; did you mean
'trace_rb_cpu_prepare'? [-Werror=implicit-function-declaration]
ftrace_arch_code_modify_prepare();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace_rb_cpu_prepare
> kernel/bpf/syscall.c:1825:2: error: implicit declaration of
function 'ftrace_arch_code_modify_post_process'
[-Werror=implicit-function-declaration]
ftrace_arch_code_modify_post_process();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1822 kernel/bpf/syscall.c
1816
1817 int ff_update_ftrace_func(unsigned long ip, unsigned long addr);
1818 int fentry_hack(struct bpf_prog *prog)
1819 {
1820 int ret;
1821
1822 ftrace_arch_code_modify_prepare();
1823 ret =
ff_update_ftrace_func((long)prog->aux->attach_func_addr,
1824 (long)prog->aux->trampoline);
1825 ftrace_arch_code_modify_post_process();
1826 return
ret;
1827 }
1828
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation