tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/graph
head: 6d3a6d7a66654d84166f80193719450de17b8847
commit: 6b75d0dafcfbaafe55c543c044b2fcf0b91140de [2/3] x86/ftrace: Make function graph use
ftrace directly
config: sparc64-randconfig-r004-20210513 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id...
git remote add jolsa-perf
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/graph
git checkout 6b75d0dafcfbaafe55c543c044b2fcf0b91140de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/trace/fgraph.c:234:15: warning: no previous prototype for
'ftrace_return_to_handler' [-Wmissing-prototypes]
234 | unsigned long ftrace_return_to_handler(unsigned long frame_pointer)
| ^~~~~~~~~~~~~~~~~~~~~~~~
> kernel/trace/fgraph.c:338:12: error: 'ftrace_graph_func'
undeclared here (not in a function); did you mean 'ftrace_graph_ent'?
338 | .func = ftrace_graph_func,
| ^~~~~~~~~~~~~~~~~
| ftrace_graph_ent
> kernel/trace/fgraph.c:341:8: error: expected '}' before
'FTRACE_OPS_GRAPH_STUB'
341 | FTRACE_OPS_GRAPH_STUB,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/trace/fgraph.c:337:38: note: to match this '{'
337 | static struct ftrace_ops graph_ops = {
| ^
kernel/trace/fgraph.c:349:6: warning: no previous prototype for
'ftrace_graph_sleep_time_control' [-Wmissing-prototypes]
349 | void ftrace_graph_sleep_time_control(bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +338 kernel/trace/fgraph.c
336
337 static struct ftrace_ops graph_ops = {
338 .func = ftrace_graph_func,
339 .flags =
FTRACE_OPS_FL_INITIALIZED |
340 FTRACE_OPS_FL_PID
341 FTRACE_OPS_GRAPH_STUB,
342 #ifdef
FTRACE_GRAPH_TRAMP_ADDR
343 .trampoline = FTRACE_GRAPH_TRAMP_ADDR,
344 /* trampoline_size is only needed for dynamically allocated tramps */
345 #endif
346 ASSIGN_OPS_HASH(graph_ops, &global_ops.local_hash)
347 };
348
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org