public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/batch 3/27] kernel/trace/fgraph.c:338:35: error: 'ftrace_graph_func' undeclared here (not in a function); did you mean 'ftrace_graph_ent'?
@ 2021-08-27  8:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-27  8:08 UTC (permalink / raw)
  To: Steven Rostedt (VMware); +Cc: kbuild-all, linux-kernel, Jiri Olsa

[-- Attachment #1: Type: text/plain, Size: 2955 bytes --]

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: mips-buildonly-randconfig-r004-20210827 (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.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=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=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash kernel/trace/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@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:35: 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:36: error: 'FTRACE_OPS_GRAPH_STUB' undeclared here (not in a function); did you mean 'FTRACE_OPS_FL_STUB'?
     341 |                                    FTRACE_OPS_GRAPH_STUB,
         |                                    ^~~~~~~~~~~~~~~~~~~~~
         |                                    FTRACE_OPS_FL_STUB
   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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27147 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-27  8:08 [jolsa-perf:bpf/batch 3/27] kernel/trace/fgraph.c:338:35: error: 'ftrace_graph_func' undeclared here (not in a function); did you mean 'ftrace_graph_ent'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox