kernel/trace/bpf_trace.c:1053:29: error: implicit declaration of function 'ftrace_get_symaddr'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git topic/fprobe-on-fgraph head: e6369db4372d722c47a45887eeb6a0f483c20ced commit: e6369db4372d722c47a45887eeb6a0f483c20ced [19/19] bpf: Use ftrace_get_symaddr() in get_entry_ip() config: i386-buildonly-randconfig-006 (https://download.01.org/0day-ci/archive/20241206/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241206/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
kernel/trace/bpf_trace.c: In function 'get_entry_ip':
>> kernel/trace/bpf_trace.c:1053:29: error: implicit declaration of function 'ftrace_get_symaddr' [-Werror=implicit-function-declaration]
1053 | unsigned long ret = ftrace_get_symaddr(fentry_ip);
| ^~~~~~~~~~~~~~~~~~cc1: some warnings being treated as errors
vim +/ftrace_get_symaddr +1053 kernel/trace/bpf_trace.c
1050
1051 static unsigned long get_entry_ip(unsigned long fentry_ip)
1052 {
> 1053 unsigned long ret = ftrace_get_symaddr(fentry_ip);
1054
1055 return ret ? : fentry_ip;
1056 }
1057
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki