Commit-ID: 49c177461bfbedeccbab22bf3905db2f9da7f1c3 Gitweb: http://git.kernel.org/tip/49c177461bfbedeccbab22bf3905db2f9da7f1c3 Author: Steven Rostedt <srostedt@xxxxxxxxxx> AuthorDate: Tue, 25 May 2010 06:19:35 -0700 Committer: Steven Rostedt <rostedt@xxxxxxxxxxx> CommitDate: Tue, 25 May 2010 06:19:35 -0700 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@xxxxxxx> Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx> --- include/trace/ftrace.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 0152b86..34bead7 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h @@ -68,7 +68,7 @@ #undef DEFINE_EVENT #define DEFINE_EVENT(template, name, proto, args) \ - static struct ftrace_event_call \ + static struct ftrace_event_call __used \ __attribute__((__aligned__(4))) event_##name #undef DEFINE_EVENT_PRINT -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |