Re: [PATCH 1/2] tracing: make tracer_flags use the right set_flag callback

From: kbuild test robot
Date: Tue Mar 08 2016 - 08:52:53 EST


Hi Chunyu,

[auto build test ERROR on tip/perf/core]
[also build test ERROR on v4.5-rc7 next-20160308]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Chunyu-Hu/tracing-make-tracer_flags-use-the-right-set_flag-callback/20160308-214136
config: i386-randconfig-x000-201610 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

kernel/trace/trace.c: In function 'create_trace_option_files':
>> kernel/trace/trace.c:6403:7: error: 'i' undeclared (first use in this function)
for (i = 0; i < tr->nr_topts; i++) {
^
kernel/trace/trace.c:6403:7: note: each undeclared identifier is reported only once for each function it appears in

vim +/i +6403 kernel/trace/trace.c

37aea98b Steven Rostedt (Red Hat 2015-09-30 6397) * If this is an instance, only create flags for tracers
37aea98b Steven Rostedt (Red Hat 2015-09-30 6398) * the instance may have.
37aea98b Steven Rostedt (Red Hat 2015-09-30 6399) */
37aea98b Steven Rostedt (Red Hat 2015-09-30 6400) if (!trace_ok_for_array(tracer, tr))
37aea98b Steven Rostedt (Red Hat 2015-09-30 6401) return;
37aea98b Steven Rostedt (Red Hat 2015-09-30 6402)
37aea98b Steven Rostedt (Red Hat 2015-09-30 @6403) for (i = 0; i < tr->nr_topts; i++) {
37aea98b Steven Rostedt (Red Hat 2015-09-30 6404) /*
37aea98b Steven Rostedt (Red Hat 2015-09-30 6405) * Check if these flags have already been added.
37aea98b Steven Rostedt (Red Hat 2015-09-30 6406) * Some tracers share flags.

:::::: The code at line 6403 was first introduced by commit
:::::: 37aea98b84c0ce2ac638510fefeed9f8f920bd34 tracing: Add trace options for tracer options to instances

:::::: TO: Steven Rostedt (Red Hat) <rostedt@xxxxxxxxxxx>
:::::: CC: Steven Rostedt <rostedt@xxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data