Skip to content

Commit ba028c6

Browse files
ftrace: Remove unused list 'ftrace_direct_funcs'
JIRA: https://issues.redhat.com/browse/RHEL-101598 commit c9d5b7b Author: Dr. David Alan Gilbert <linux@treblig.org> Date: Sat May 4 14:23:03 2024 +0100 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> Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
1 parent edfeb4e commit ba028c6

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
@@ -67,7 +67,6 @@ static inline void early_trace_init(void) { }
6767

6868
struct module;
6969
struct ftrace_hash;
70-
struct ftrace_direct_func;
7170

7271
#if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_MODULES) && \
7372
defined(CONFIG_DYNAMIC_FTRACE)

kernel/trace/ftrace.c

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

52665266
#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
52675267

5268-
struct ftrace_direct_func {
5269-
struct list_head next;
5270-
unsigned long addr;
5271-
int count;
5272-
};
5273-
5274-
static LIST_HEAD(ftrace_direct_funcs);
5275-
52765268
static int register_ftrace_function_nolock(struct ftrace_ops *ops);
52775269

52785270
/*

0 commit comments

Comments
 (0)