Skip to contentSkip to conversation

tracing: Remove __init from __trace_early_add_new_event()

PATCH New Steven Rostedt 1 participant 1 message Oct 16, 2020 Tracing

lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

PATCH 1/1 tracing: Remove __init from __trace_early_add_new_event()

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next

Head SHA1: ce66f6136460a51acfc32de4481fe8fd69dfd50b

Masami Hiramatsu (1):
tracing: Remove __init from __trace_early_add_new_event()

----

 kernel/trace/trace_events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---------------------------
commit ce66f6136460a51acfc32de4481fe8fd69dfd50b
Author: Masami Hiramatsu <[email protected]>
Date:   Fri Oct 16 13:20:02 2020 +0900

tracing: Remove __init from __trace_early_add_new_event()

The commit 720dee53ad8d ("tracing/boot: Initialize per-instance event list in early boot") removes __init from __trace_early_add_events() but __trace_early_add_new_event() still has __init and will cause a section mismatch.

Remove __init from __trace_early_add_new_event() as same as __trace_early_add_events().

kernel/trace/trace_events.c +1 -1
index 851ab37058dd..e705f06c68c6 100644
@@ -2498,7 +2498,7 @@ __trace_add_new_event(struct trace_event_call *call, struct trace_array *tr)
  * for enabling events at boot. We want to enable events before
  * the filesystem is initialized.
  */
-static __init int
+static int
 __trace_early_add_new_event(struct trace_event_call *call,
 			    struct trace_array *tr)
 {