kernel/trace/fgraph.c:517:1: sparse: sparse: symbol 'fgraph_do_direct' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 234cb065ad82915ff8d06ce01e01c3e640b674d2 commit: cc60ee813b50334b32343861057dc9e981e9c7f0 [3324/3594] function_graph: Use static_call and branch to optimize entry function config: i386-randconfig-r131-20240605 (https://download.01.org/0day-ci/archive/20240605/[email protected]/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/[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]/
sparse warnings: (new ones prefixed by >>)
>> kernel/trace/fgraph.c:517:1: sparse: sparse: symbol 'fgraph_do_direct' was not declared. Should it be static?
vim +/fgraph_do_direct +517 kernel/trace/fgraph.c
514
515 static struct fgraph_ops *fgraph_direct_gops = &fgraph_stub;
516 DEFINE_STATIC_CALL(fgraph_func, ftrace_graph_entry_stub);
> 517 DEFINE_STATIC_KEY_TRUE(fgraph_do_direct);
518
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki