Skip to contentSkip to conversation

tracing: Fix of mismatch section

GIT PULL Merged Steven Rostedt 2 participants 2 messages Oct 16, 2020 Tracing

lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

Linus,

Tracing: Fix mismatch section of adding early trace events

- Fixes the issue of a mismatch section that was missed due to gcc inlining the offending function, while clang did not (and reported the issue).

Please pull the latest trace-v5.10-2 tree, which can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
trace-v5.10-2

Tag SHA1: 39abab2b445c7e77fa0932a45e150c90ede54bd8 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)
 {
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 16 Oct 2020 16:22:42 -0400:

The pull request you sent on Fri, 16 Oct 2020 16:22:42 -0400:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git trace-v5.10-2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/93f3d8f54a22eaa5ae4ec269615729c4f9b1cf1e

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html