tracing: Make tracing_selftest_running/delete nops when not used
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Sun, 28 May 2023 05:17:40 +0000 (01:17 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 29 May 2023 01:15:26 +0000 (21:15 -0400)
commita3ae76d7ff781208100e6acc58eb09afb7b4b177
tree77932c0f56d0bcc987e8141e603ad95b88a270d5
parent9da705d432a07927526005a0688d81fbbf30e349
tracing: Make tracing_selftest_running/delete nops when not used

There's no reason to test the condition variables tracing_selftest_running
or tracing_selftest_delete when tracing selftests are not enabled. Make
them define 0s when not the selftests are not configured in.

Link: https://lkml.kernel.org/r/20230528051742.1325503-4-rostedt@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c