]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tracing: Remove duplicate ENABLE_EVENT_STR and DISABLE_EVENT_STR macros
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 26 Jan 2026 18:00:37 +0000 (13:00 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 29 Jan 2026 02:01:10 +0000 (21:01 -0500)
The macros ENABLE_EVENT_STR and DISABLE_EVENT_STR were added to trace.h so
that more than one file can have access to them, but was never removed
from their original location. Remove the duplicates.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Tom Zanussi <zanussi@kernel.org>
Link: https://patch.msgid.link/20260126130037.4ba201f9@gandalf.local.home
Fixes: d0bad49bb0a09 ("tracing: Add enable_hist/disable_hist triggers")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events.c

index f372a6374164e46df7476bedc27167da036b25dc..4972e1a2b5f3fd24233f231c22f5d97fcb4540fb 100644 (file)
@@ -4097,11 +4097,6 @@ void trace_put_event_file(struct trace_event_file *file)
 EXPORT_SYMBOL_GPL(trace_put_event_file);
 
 #ifdef CONFIG_DYNAMIC_FTRACE
-
-/* Avoid typos */
-#define ENABLE_EVENT_STR       "enable_event"
-#define DISABLE_EVENT_STR      "disable_event"
-
 struct event_probe_data {
        struct trace_event_file *file;
        unsigned long                   count;