ftrace: Remove unused list 'ftrace_direct_funcs'
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 4 May 2024 13:23:03 +0000 (14:23 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 14 May 2024 06:09:00 +0000 (02:09 -0400)
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)

Link: https://lore.kernel.org/linux-trace-kernel/20240504132303.67538-1-linux@treblig.org
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c

index 54d53f345d14974720f308b9fba1a754b3c6d712..b01cca36147ff2b67b54e52e150ca9573d23e242 100644 (file)
@@ -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)
index f9223513414a3487d649a0c4237b4dd6c014eae5..4613bf67ef2c05ba2caf05b7aaf88b38b93e213d 100644 (file)
@@ -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);
 
 /*