Re: [PATCH] tracing: hide unused functions

2017-10-13 Thread Steven Rostedt
On Fri, 13 Oct 2017 15:02:34 +0200 Arnd Bergmann wrote: > On Fri, Oct 13, 2017 at 2:01 PM, Arnd Bergmann wrote: > > After trace_selftest_startup_sched_switch is removed, trace_test_buffer() > > is now only used inside of CONFIG_FUNCTION_TRACER, leading to this > > warning: > > > > kernel/trace/t

Re: [PATCH] tracing: hide unused functions

2017-10-13 Thread Arnd Bergmann
On Fri, Oct 13, 2017 at 2:01 PM, Arnd Bergmann wrote: > After trace_selftest_startup_sched_switch is removed, trace_test_buffer() > is now only used inside of CONFIG_FUNCTION_TRACER, leading to this > warning: > > kernel/trace/trace_selftest.c:62:12: error: 'trace_test_buffer' defined but > not u

[PATCH] tracing: hide unused functions

2017-10-13 Thread Arnd Bergmann
After trace_selftest_startup_sched_switch is removed, trace_test_buffer() is now only used inside of CONFIG_FUNCTION_TRACER, leading to this warning: kernel/trace/trace_selftest.c:62:12: error: 'trace_test_buffer' defined but not used [-Werror=unused-function] The same is true for a few other fu