]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/trace/ftrace.h
tracing: Add __used annotation to event variable
[net-next-2.6.git] / include / trace / ftrace.h
index 0152b8673bd7a35517980b5a040ae4b000182d91..34bead70d178953f756e5b8ddcffb999e2d22082 100644 (file)
@@ -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