[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-37d73998920859784e6504462a2fd5f52cc08051@git.kernel.org>
Date: Thu, 22 Mar 2012 14:21:06 -0700
From: tip-bot for Jiri Olsa <jolsa@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: mingo@...hat.com, linux-kernel@...r.kernel.org, hpa@...or.com,
mingo@...nel.org, jolsa@...hat.com, fweisbec@...il.com,
rostedt@...dmis.org, broonie@...nsource.wolfsonmicro.com,
tglx@...utronix.de
Subject: [tip:perf/urgent] perf:
Add ifdef to remove unused enum switch warnings
Commit-ID: 37d73998920859784e6504462a2fd5f52cc08051
Gitweb: http://git.kernel.org/tip/37d73998920859784e6504462a2fd5f52cc08051
Author: Jiri Olsa <jolsa@...hat.com>
AuthorDate: Wed, 14 Mar 2012 00:03:02 +0100
Committer: Steven Rostedt <rostedt@...dmis.org>
CommitDate: Wed, 14 Mar 2012 08:47:58 -0400
perf: Add ifdef to remove unused enum switch warnings
Fix for unused symbols in switch warnings.
Link: http://lkml.kernel.org/r/20120313230302.GA1514@m.redhat.com
Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>
Cc: Ingo Molnar <mingo@...hat.com>
Signed-off-by: Jiri Olsa <jolsa@...hat.com>
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
---
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 dd478fc..5f3f3be 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists