aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2017-10-13 16:22:20 +0200
committerSteven Rostedt (VMware) <[email protected]>2017-10-13 11:08:01 -0400
commitc3b5b6ed1eb4f429addfd9e8e8eb39d1a38c85d0 (patch)
tree943e5cd0c4811c80c421439e68f0a5b6fd33e248 /tools/perf/scripts/python/export-to-postgresql.py
parentaf41acf8347dd6d11a2a29a11e2866ca4892d600 (diff)
tracing: mark trace_test_buffer as __maybe_unused
After trace_selftest_startup_sched_switch is removed, trace_test_buffer() is only used sometimes, leading to this warning: kernel/trace/trace_selftest.c:62:12: error: 'trace_test_buffer' defined but not used [-Werror=unused-function] There is no simple #ifdef condition that captures well whether the function is in fact used or not, so marking it as __maybe_unused is probably the best way to shut up the warning. The function will then be silently dropped when there is no user. Link: http://lkml.kernel.org/r/[email protected] Fixes: d8c4deee6dc6 ("tracing: Remove obsolete sched_switch tracer selftest") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions