tracing: Annotate event field-defining functions with __init
[platform/adaptation/renesas_rcar/renesas_kernel.git] / include / trace / ftrace.h
index 17a77fc..a536f66 100644 (file)
@@ -324,7 +324,7 @@ static struct trace_event_functions ftrace_event_type_funcs_##call = {      \
 
 #undef DECLARE_EVENT_CLASS
 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print)   \
-static int notrace                                                     \
+static int notrace __init                                              \
 ftrace_define_fields_##call(struct ftrace_event_call *event_call)      \
 {                                                                      \
        struct ftrace_raw_##call field;                                 \