]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes: Make arch_check_ftrace_location static
authorPunit Agrawal <punitagrawal@gmail.com>
Tue, 14 Sep 2021 14:39:16 +0000 (23:39 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 1 Oct 2021 01:24:05 +0000 (21:24 -0400)
commit716e89f7ab91c1197d134838b06aa6313c069d9b
tree24ba087768c83e39d21f73107d5b0b10882063db
parent0536d5689622780181a1db2fb7762838ab90a4cc
kprobes: Make arch_check_ftrace_location static

arch_check_ftrace_location() was introduced as a weak function in
commit 6ae476dba1c051 ("kprobes: introduce weak
arch_check_ftrace_location() helper function") to allow architectures
to handle kprobes call site on their own.

Recently, the only architecture (csky) to implement
arch_check_ftrace_location() was migrated to using the common
version.

As a result, further cleanup the code to drop the weak attribute and
rename the function to remove the architecture specific
implementation.

Link: https://lkml.kernel.org/r/163163035673.489837.2367816318195254104.stgit@devnote2
Signed-off-by: Punit Agrawal <punitagrawal@gmail.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/kprobes.h
kernel/kprobes.c