Skip to contentSkip to conversation

tracing: Fix #if CONFIG_MODULES to #ifdef CONFIG_MODULES

PATCH In review Steven Rostedt 1 participant 2 messages Jan 20, 2025 Tracing

lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

PATCH 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.

Fixes b355247df104e ("tracing: Cache ":mod:" events for modules not loaded yet")
---
 kernel/trace/trace_events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_events.c +1 -1
index f762e554fad4..bb1406719c3f 100644
@@ -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
author maintainer
#1 lore raw
Quoted 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 "#ifdef CONFIG_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")
---
 kernel/trace/trace_events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_events.c +1 -1
index f762e554fad4..bb1406719c3f 100644
@@ -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;