Commit 71bdc8fe authored by Punit Agrawal's avatar Punit Agrawal Committed by Steven Rostedt (VMware)
Browse files

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: default avatarPunit Agrawal <punitagrawal@gmail.com>
Acked-by: default avatarGuo Ren <guoren@kernel.org>
Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 02afb8d6
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2,13 +2,6 @@

#include <linux/kprobes.h>

int arch_check_ftrace_location(struct kprobe *p)
{
	if (ftrace_location((unsigned long)p->addr))
		p->flags |= KPROBE_FLAG_FTRACE;
	return 0;
}

/* Ftrace callback handler for kprobes -- called under preepmt disabled */
void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip,
			   struct ftrace_ops *ops, struct ftrace_regs *fregs)