Skip to contentSkip to conversation

ftrace: Remove unused list 'ftrace_direct_funcs'

PATCH New [email protected] 1 participant 1 message May 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ftrace: Remove unused list 'ftrace_direct_funcs'

From: "Dr. David Alan Gilbert" <[email protected]>

Commit 8788ca164eb4b ("ftrace: Remove the legacy _ftrace_direct API") stopped using 'ftrace_direct_funcs' (and the associated struct ftrace_direct_func). Remove them.

Build tested only (on x86-64 with FTRACE and DYNAMIC_FTRACE enabled)

---
 include/linux/ftrace.h | 1 -
 kernel/trace/ftrace.c  | 8 --------
 2 files changed, 9 deletions(-)
include/linux/ftrace.h +0 -1
index 54d53f345d149..b01cca36147ff 100644
@@ -83,7 +83,6 @@ static inline void early_trace_init(void) { }
 
 struct module;
 struct ftrace_hash;
-struct ftrace_direct_func;
 
 #if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_MODULES) && \
 	defined(CONFIG_DYNAMIC_FTRACE)
kernel/trace/ftrace.c +0 -8
index da1710499698b..b18b4ece3d7c9 100644
@@ -5318,14 +5318,6 @@ ftrace_set_addr(struct ftrace_ops *ops, unsigned long *ips, unsigned int cnt,
 
 #ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
 
-struct ftrace_direct_func {
-	struct list_head	next;
-	unsigned long		addr;
-	int			count;
-};
-
-static LIST_HEAD(ftrace_direct_funcs);
-
 static int register_ftrace_function_nolock(struct ftrace_ops *ops);
 
 /*
Signature · 1 line
2.45.0