tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
ftrace/fgraph-multi
head: 978dc256bd4d08df876d58b4fa01ba4cb3926242
commit: 0f2f776e0e938471ac0edd75576b5b5a77603750 [32/40] ftrace: Allow function_graph
tracer to be enabled in instances
config: i386-randconfig-r035-20210416 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git/c...
git remote add trace
https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
git fetch --no-tags trace ftrace/fgraph-multi
git checkout 0f2f776e0e938471ac0edd75576b5b5a77603750
# save the attached .config to linux build tree
make W=1 W=1 ARCH=i386
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/trace_functions.c: In function 'ftrace_create_function_files':
> kernel/trace/trace_functions.c:78:2: error: 'ret'
undeclared (first use in this function); did you mean 'net'?
78 | ret
= allocate_fgraph_ops(tr);
| ^~~
| net
kernel/trace/trace_functions.c:78:2: note: each undeclared identifier is reported only
once for each function it appears in
vim +78 kernel/trace/trace_functions.c
64
65 int ftrace_create_function_files(struct trace_array *tr,
66 struct dentry *parent)
67 {
68 /*
69 * The top level array uses the "global_ops", and the files are
70 * created on boot up.
71 */
72 if (tr->flags & TRACE_ARRAY_FL_GLOBAL)
73 return 0;
74
75 if (!tr->ops)
76 return -EINVAL;
77
78 ret = allocate_fgraph_ops(tr);
79 if (ret) {
80 kfree(tr->ops);
81 return ret;
82 }
83
84 ftrace_create_filter_files(tr->ops, parent);
85
86 return 0;
87 }
88
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org