Skip to content

Commit ce66f61

Browse files
mhiramatrostedt
authored andcommitted
tracing: Remove __init from __trace_early_add_new_event()
The commit 720dee5 ("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: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 6107742 commit ce66f61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/trace_events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ __trace_add_new_event(struct trace_event_call *call, struct trace_array *tr)
24982498
* for enabling events at boot. We want to enable events before
24992499
* the filesystem is initialized.
25002500
*/
2501-
static __init int
2501+
static int
25022502
__trace_early_add_new_event(struct trace_event_call *call,
25032503
struct trace_array *tr)
25042504
{

0 commit comments

Comments
 (0)