aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-05-25 09:19:35 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-05-25 09:19:35 -0400
commit49c177461bfbedeccbab22bf3905db2f9da7f1c3 (patch)
treee58f08de9c82eab2589bfc22ece178af44c3b495 /include/trace
parent87f44bbc246c5244c76a701f8eefba7788bce64a (diff)
tracing: Add __used annotation to event variable
The TRACE_EVENT() macros automate creation of trace events. To automate initialization, the set up variables are loaded in a special section that is read on boot up. GCC is not aware that these static variables are used and will complain about them if we do not inform GCC that they are indeed used. One of the declarations of the event element was missing a __used annotation. This patch adds it. Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 0152b8673bd7..34bead70d178 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -68,7 +68,7 @@
68 68
69#undef DEFINE_EVENT 69#undef DEFINE_EVENT
70#define DEFINE_EVENT(template, name, proto, args) \ 70#define DEFINE_EVENT(template, name, proto, args) \
71 static struct ftrace_event_call \ 71 static struct ftrace_event_call __used \
72 __attribute__((__aligned__(4))) event_##name 72 __attribute__((__aligned__(4))) event_##name
73 73
74#undef DEFINE_EVENT_PRINT 74#undef DEFINE_EVENT_PRINT