Skip to content

Commit 71bdc8f

Browse files
punitagrawalrostedt
authored andcommitted
csky: ftrace: Drop duplicate implementation of arch_check_ftrace_location()
The csky specific arch_check_ftrace_location() shadows a weak implementation of the function in core code that offers the same functionality but with additional error checking. Drop the architecture specific function as a step towards further cleanup in core code. Link: https://lkml.kernel.org/r/163163034617.489837.7789033031868135258.stgit@devnote2 Signed-off-by: Punit Agrawal <[email protected]> Acked-by: Guo Ren <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 02afb8d commit 71bdc8f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/csky/kernel/probes/ftrace.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
#include <linux/kprobes.h>
44

5-
int arch_check_ftrace_location(struct kprobe *p)
6-
{
7-
if (ftrace_location((unsigned long)p->addr))
8-
p->flags |= KPROBE_FLAG_FTRACE;
9-
return 0;
10-
}
11-
125
/* Ftrace callback handler for kprobes -- called under preepmt disabled */
136
void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip,
147
struct ftrace_ops *ops, struct ftrace_regs *fregs)

0 commit comments

Comments
 (0)