Re: [PATCH] kconfig: always use user input symbols

From: kbuild test robot
Date: Mon May 22 2017 - 03:49:05 EST


Hi Tycho,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.12-rc2 next-20170522]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Tycho-Andersen/kconfig-always-use-user-input-symbols/20170522-143552
config: x86_64-allyesdebian (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

>> kernel/trace/trace_functions.c:265:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_function,
^
>> kernel/trace/trace_functions.c:265:14: error: 'trace_selftest_startup_function' undeclared here (not in a function)
.selftest = trace_selftest_startup_function,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> kernel/trace/trace_irqsoff.c:696:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_irqsoff,
^
>> kernel/trace/trace_irqsoff.c:696:17: error: 'trace_selftest_startup_irqsoff' undeclared here (not in a function)
.selftest = trace_selftest_startup_irqsoff,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> kernel/trace/trace_sched_wakeup.c:761:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_wakeup,
^
>> kernel/trace/trace_sched_wakeup.c:761:17: error: 'trace_selftest_startup_wakeup' undeclared here (not in a function)
.selftest = trace_selftest_startup_wakeup,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_sched_wakeup.c:781:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_wakeup,
^
kernel/trace/trace_sched_wakeup.c:801:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_wakeup,
^
--
>> kernel/trace/trace_nop.c:93:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_nop,
^
>> kernel/trace/trace_nop.c:93:14: error: 'trace_selftest_startup_nop' undeclared here (not in a function)
.selftest = trace_selftest_startup_nop,
^~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> kernel/trace/trace_functions_graph.c:1487:2: error: unknown field 'selftest' specified in initializer
.selftest = trace_selftest_startup_function_graph,
^
>> kernel/trace/trace_functions_graph.c:1487:14: error: 'trace_selftest_startup_function_graph' undeclared here (not in a function)
.selftest = trace_selftest_startup_function_graph,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/selftest +265 kernel/trace/trace_functions.c

f555f1231 Anton Vorontsov 2012-07-09 249 return -EINVAL;
536149910 Steven Rostedt 2009-01-15 250 }
536149910 Steven Rostedt 2009-01-15 251
f555f1231 Anton Vorontsov 2012-07-09 252 return 0;
536149910 Steven Rostedt 2009-01-15 253 }
536149910 Steven Rostedt 2009-01-15 254
8f7689933 Steven Rostedt (Red Hat 2013-07-18 255) static struct tracer function_trace __tracer_data =
1b29b0188 Steven Rostedt 2008-05-12 256 {
3ce83aea8 Steven Rostedt 2008-10-06 257 .name = "function",
1b29b0188 Steven Rostedt 2008-05-12 258 .init = function_trace_init,
1b29b0188 Steven Rostedt 2008-05-12 259 .reset = function_trace_reset,
9036990d4 Steven Rostedt 2008-11-05 260 .start = function_trace_start,
536149910 Steven Rostedt 2009-01-15 261 .flags = &func_flags,
536149910 Steven Rostedt 2009-01-15 262 .set_flag = func_set_flag,
f20a58062 Steven Rostedt (Red Hat 2013-11-07 263) .allow_instances = true,
60a11774b Steven Rostedt 2008-05-12 264 #ifdef CONFIG_FTRACE_SELFTEST
60a11774b Steven Rostedt 2008-05-12 @265 .selftest = trace_selftest_startup_function,
60a11774b Steven Rostedt 2008-05-12 266 #endif
1b29b0188 Steven Rostedt 2008-05-12 267 };
1b29b0188 Steven Rostedt 2008-05-12 268
23b4ff3aa Steven Rostedt 2009-02-14 269 #ifdef CONFIG_DYNAMIC_FTRACE
fe014e24b Steven Rostedt (VMware 2017-04-03 270) static void update_traceon_count(struct ftrace_probe_ops *ops,
2290f2c58 Steven Rostedt (VMware 2017-04-20 271) unsigned long ip,
2290f2c58 Steven Rostedt (VMware 2017-04-20 272) struct trace_array *tr, bool on,
6e4443199 Steven Rostedt (VMware 2017-04-19 273) void *data)

:::::: The code at line 265 was first introduced by commit
:::::: 60a11774b38fef1ab90b18c5353bd1c7c4d311c8 ftrace: add self-tests

:::::: TO: Steven Rostedt <srostedt@xxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip