diff options
| author | Jiri Olsa <[email protected]> | 2012-03-14 00:03:02 +0100 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2012-03-14 08:47:58 -0400 |
| commit | 37d73998920859784e6504462a2fd5f52cc08051 (patch) | |
| tree | 907bbfb570241027762c1b3f20a95b9cd8a191f9 /include/linux | |
| parent | fa73dc9400516945bcbae8d98c23393bcefe1440 (diff) | |
perf: Add ifdef to remove unused enum switch warnings
Fix for unused symbols in switch warnings.
Link: http://lkml.kernel.org/r/[email protected]
Cc: Mark Brown <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace_event.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index dd478fc8f9f5..5f3f3be5af09 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h @@ -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; |