diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-04-18 18:29:19 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-05-29 20:17:08 +0200 |
commit | 8c9f4940c27dd72ee68ca5af2922e4d83ca9121b (patch) | |
tree | 502c7a84b720d1a39c3e0c1c5a0b24514a55b2ce /arch/riscv/include/asm/cache.h | |
parent | riscv: Turn has_fpu into a static key if FPU=y (diff) | |
download | linux-8c9f4940c27dd72ee68ca5af2922e4d83ca9121b.tar.xz linux-8c9f4940c27dd72ee68ca5af2922e4d83ca9121b.zip |
riscv: kprobes: Remove redundant kprobe_step_ctx
Inspired by commit ba090f9cafd5 ("arm64: kprobes: Remove redundant
kprobe_step_ctx"), the ss_pending and match_addr of kprobe_step_ctx
are redundant because those can be replaced by KPROBE_HIT_SS and
&cur_kprobe->ainsn.api.insn[0] + GET_INSN_LENGTH(cur->opcode)
respectively.
Remove the kprobe_step_ctx to simplify the code.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm/cache.h')
0 files changed, 0 insertions, 0 deletions