tracing: make PREEMPTIRQ_EVENTS depend on TRACING
commit2dde6b0034dbc050957cdb6539ce28eca57e8cdf
authorArnd Bergmann <arnd@arndb.de>
Fri, 3 Nov 2017 10:39:57 +0000 (3 11:39 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 4 Dec 2017 11:52:09 +0000 (4 06:52 -0500)
treedcf9c4fad1140d4738b0fc6d71f2d79c926a9a27
parent90e406f96f630c07d631a021fd4af10aac913e77
tracing: make PREEMPTIRQ_EVENTS depend on TRACING

When CONFIG_TRACING is disabled, the new preemptirq events tracer
produces a build failure:

In file included from kernel/trace/trace_irqsoff.c:17:0:
kernel/trace/trace.h: In function 'trace_test_and_set_recursion':
kernel/trace/trace.h:542:28: error: 'struct task_struct' has no member named 'trace_recursion'

Adding an explicit dependency avoids the broken configuration.

Link: http://lkml.kernel.org/r/20171103104031.270375-1-arnd@arndb.de
Fixes: d59158162e03 ("tracing: Add support for preempt and irq enable/disable events")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/Kconfig