Skip to content

Commit c9d5b7b

Browse files
Dr. David Alan Gilbertrostedt
authored andcommitted
ftrace: Remove unused list 'ftrace_direct_funcs'
Commit 8788ca1 ("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>
1 parent 347bd7f commit c9d5b7b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/linux/ftrace.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ static inline void early_trace_init(void) { }
8383

8484
struct module;
8585
struct ftrace_hash;
86-
struct ftrace_direct_func;
8786

8887
#if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_MODULES) && \
8988
defined(CONFIG_DYNAMIC_FTRACE)

kernel/trace/ftrace.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5318,14 +5318,6 @@ ftrace_set_addr(struct ftrace_ops *ops, unsigned long *ips, unsigned int cnt,
53185318

53195319
#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
53205320

5321-
struct ftrace_direct_func {
5322-
struct list_head next;
5323-
unsigned long addr;
5324-
int count;
5325-
};
5326-
5327-
static LIST_HEAD(ftrace_direct_funcs);
5328-
53295321
static int register_ftrace_function_nolock(struct ftrace_ops *ops);
53305322

53315323
/*

0 commit comments

Comments
 (0)