tracing: Fix #if CONFIG_MODULES to #ifdef CONFIG_MODULES
Steven Rostedt
maintainerPATCH 1/1 tracing: Fix #if CONFIG_MODULES to #ifdef CONFIG_MODULES
From: Steven Rostedt <[email protected]>
A typo was introduced when adding the ":mod:" command that did a "#if CONFIG_MODULES" instead of a "#ifdef CONFIG_MODULES". Fix it.
Reported-by kernel test robot <[email protected]>
Fixes b355247df104e ("tracing: Cache ":mod:" events for modules not loaded yet")
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- kernel/trace/trace_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_events.c +1 -1
@@ -857,7 +857,7 @@ static int ftrace_event_enable_disable(struct trace_event_file *file,return __ftrace_event_enable_disable (file, enable,0 ); } -#if CONFIG_MODULES +#ifdef CONFIG_MODULES struct event_mod_load { struct list_head list; char *module;
Signature · 1 line
2.45.2
Steven Rostedt
maintainerQuoted 8 lines · On Mon, 20 Jan 2025 12:57:45 -0500 Steven Rostedt <[email protected]> wrote:
From: Steven Rostedt <[email protected]>
A typo was introduced when adding the ":mod:" command that did a "#if
CONFIG_MODULES" instead of a "#ifdefCONFIG_MODULES". Fix it.
Cut and paste error. Wrong closes: Should have been:
-- Steve
Quoted 19 lines
Fixes b355247df104e ("tracing: Cache ":mod:" events for modules not loaded yet")Signed-off-by Steven Rostedt (Google) <[email protected]>--- kernel/trace/trace_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/trace/trace_events.c +1
-1@@ -857,7 +857,7 @@ static int ftrace_event_enable_disable(struct trace_event_file *file,return __ftrace_event_enable_disable (file, enable,0 ); } -#if CONFIG_MODULES +#ifdef CONFIG_MODULES struct event_mod_load { struct list_head list; char *module;