Thread (9 messages) flat view 9 messages, 2 authors, 14d ago
COOLING14d

[PATCH v2 2/7] tracing: Remove duplicate declaration of ftrace_set_clr_event()

From: Thomas Weißschuh <hidden>
Date: 2026-09-08 06:22:19
Also in: linux-doc, lkml
Subsystem: the rest, tracing · Maintainers: Linus Torvalds, Steven Rostedt, Masami Hiramatsu

The function is also declared in include/linux/trace_events.h which is
even included from kernel/trace/trace.h.

Having two declarations creates churn when changing the signature.

Remove the unnecessary, duplicate declaration.

Signed-off-by: Thomas Weißschuh <redacted>
---
 kernel/trace/trace.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 74a7a50d1e78..8fffd10fad53 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -2287,7 +2287,6 @@ static inline const char *get_syscall_name(int syscall)
 void trace_event_init(void);
 void trace_event_update_all(struct trace_eval_map **map, int len, struct module *mod);
 /* Used from boot time tracer */
-extern int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
 extern int trigger_process_regex(struct trace_event_file *file, char *buff);
 #else
 static inline void __init trace_event_init(void) { }
-- 
2.55.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help