tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/batch head: b81b17307e02f8e6d4abf87e7ec2d7e5aea1e0b5 commit: 2b71c5336e040b766d2e26c36252bb1be974d335 [3/27] x86/ftrace: Make function graph use ftrace directly config: x86_64-randconfig-a004-20210829 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4e1a164d7bd53653f79decc121afe784d2fde0a7) 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=2b71c5336e040b766d2e26c36252bb1be974d335 git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git git fetch --no-tags jolsa-perf bpf/batch git checkout 2b71c5336e040b766d2e26c36252bb1be974d335 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/trace/fgraph.c:234:15: warning: no previous prototype for function 'ftrace_return_to_handler' [-Wmissing-prototypes] unsigned long ftrace_return_to_handler(unsigned long frame_pointer) ^ kernel/trace/fgraph.c:234:1: note: declare 'static' if the function is not intended to be used outside of this translation unit unsigned long ftrace_return_to_handler(unsigned long frame_pointer) ^ static >> kernel/trace/fgraph.c:341:8: error: use of undeclared identifier 'FTRACE_OPS_GRAPH_STUB'; did you mean 'FTRACE_OPS_FL_STUB'? FTRACE_OPS_GRAPH_STUB, ^~~~~~~~~~~~~~~~~~~~~ FTRACE_OPS_FL_STUB include/linux/ftrace.h:184:2: note: 'FTRACE_OPS_FL_STUB' declared here FTRACE_OPS_FL_STUB = BIT(5), ^ kernel/trace/fgraph.c:349:6: warning: no previous prototype for function 'ftrace_graph_sleep_time_control' [-Wmissing-prototypes] void ftrace_graph_sleep_time_control(bool enable) ^ kernel/trace/fgraph.c:349:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ftrace_graph_sleep_time_control(bool enable) ^ static 2 warnings and 1 error generated. vim +341 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