summaryrefslogtreecommitdiff
path: root/arch/csky
diff options
context:
space:
mode:
authorPunit Agrawal <punitagrawal@gmail.com>2021-09-14 17:38:57 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-01 04:24:05 +0300
commit02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f (patch)
treee6ef7257316cb3fb38b2797b8bd3e03ea870558b /arch/csky
parent5d6de7d7fb4b0f752adff80ca003b4fd4b467b64 (diff)
downloadlinux-02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f.tar.xz
kprobe: Simplify prepare_kprobe() by dropping redundant version
The function prepare_kprobe() is called during kprobe registration and is responsible for ensuring any architecture related preparation for the kprobe is done before returning. One of two versions of prepare_kprobe() is chosen depending on the availability of KPROBE_ON_FTRACE in the kernel configuration. Simplify the code by dropping the version when KPROBE_ON_FTRACE is not selected - instead relying on kprobe_ftrace() to return false when KPROBE_ON_FTRACE is not set. No functional change. Link: https://lkml.kernel.org/r/163163033696.489837.9264661820279300788.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>
Diffstat (limited to 'arch/csky')
0 files changed, 0 insertions, 0 deletions