diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-05-13 09:07:53 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-05-23 20:51:35 +1000 |
commit | b73c8cccd72ac28beaf262fd6ef4b91411fc8335 (patch) | |
tree | 4f695af1eade6a14ff2903f0427660ccef905bfb /drivers | |
parent | 7ee3e97e00a3893e354c3993c3f7d9dc127e9c5e (diff) |
powerpc/kprobes: Replace ppc_optinsn by common optinsn
Commit 51c9c0843993 ("powerpc/kprobes: Implement Optprobes")
implemented a powerpc specific version of optinsn in order
to workaround the 32Mb limitation for direct branches.
Instead of implementing a dedicated powerpc version, use the
common optinsn and override the allocation and freeing functions.
This also indirectly remove the CLANG warning about
is_kprobe_ppc_optinsn_slot() not being use, and the powerpc will
now benefit from commit 5b485629ba0d ("kprobes, extable: Identify
kprobes trampolines as kernel text area")
Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ec5e85f9f9abcfecc959a03495f4a7858eb4d203.1620896780.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions