perf: Add ifdef to remove unused enum switch warnings
authorJiri Olsa <jolsa@redhat.com>
Tue, 13 Mar 2012 23:03:02 +0000 (00:03 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 14 Mar 2012 12:47:58 +0000 (08:47 -0400)
Fix for unused symbols in switch warnings.

Link: http://lkml.kernel.org/r/20120313230302.GA1514@m.redhat.com
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h

index dd478fc8f9f55deb1194d19894ff6ad3c040874a..5f3f3be5af09b6446026f32c0845d842c257b629 100644 (file)
@@ -144,12 +144,14 @@ struct event_filter;
 enum trace_reg {
        TRACE_REG_REGISTER,
        TRACE_REG_UNREGISTER,
+#ifdef CONFIG_PERF_EVENTS
        TRACE_REG_PERF_REGISTER,
        TRACE_REG_PERF_UNREGISTER,
        TRACE_REG_PERF_OPEN,
        TRACE_REG_PERF_CLOSE,
        TRACE_REG_PERF_ADD,
        TRACE_REG_PERF_DEL,
+#endif
 };
 
 struct ftrace_event_call;