提交 ce66f613 编写于 作者: M Masami Hiramatsu 提交者: Steven Rostedt (VMware)

tracing: Remove __init from __trace_early_add_new_event()

The commit 720dee53 ("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().

Link: https://lore.kernel.org/lkml/CAHk-=wjU86UhovK4XuwvCqTOfc+nvtpAuaN2PJBz15z=w=u0Xg@mail.gmail.com/Reported-by: NLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: NMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 6107742d
...@@ -2498,7 +2498,7 @@ __trace_add_new_event(struct trace_event_call *call, struct trace_array *tr) ...@@ -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 * for enabling events at boot. We want to enable events before
* the filesystem is initialized. * the filesystem is initialized.
*/ */
static __init int static int
__trace_early_add_new_event(struct trace_event_call *call, __trace_early_add_new_event(struct trace_event_call *call,
struct trace_array *tr) struct trace_array *tr)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册