Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <punitagrawal@gmail.com>
Acked-by: Guo Ren <guoren@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Punit Agrawal and committed by
Steven Rostedt (VMware)
71bdc8fe 02afb8d6

-7
-7
arch/csky/kernel/probes/ftrace.c
··· 2 2 3 3 #include <linux/kprobes.h> 4 4 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 - 12 5 /* Ftrace callback handler for kprobes -- called under preepmt disabled */ 13 6 void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, 14 7 struct ftrace_ops *ops, struct ftrace_regs *fregs)