[for-next][PATCH 11/20] x86/kprobes: Remove unused arch_kprobe_override_function() declaration

From: Steven Rostedt
Date: Tue Sep 27 2022 - 12:02:16 EST


From: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>

All uses of arch_kprobe_override_function() have been removed by
commit 540adea3809f ("error-injection: Separate error-injection
from kprobe"), so remove the declaration, too.

Link: https://lkml.kernel.org/r/20220914110437.1436353-3-cuigaosheng1@xxxxxxxxxx

Cc: <mingo@xxxxxxxxxx>
Cc: <tglx@xxxxxxxxxxxxx>
Cc: <bp@xxxxxxxxx>
Cc: <dave.hansen@xxxxxxxxxxxxxxx>
Cc: <x86@xxxxxxxxxx>
Cc: <hpa@xxxxxxxxx>
Cc: <mhiramat@xxxxxxxxxx>
Cc: <peterz@xxxxxxxxxxxxx>
Cc: <ast@xxxxxxxxxx>
Signed-off-by: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>
Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
---
arch/x86/include/asm/kprobes.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/x86/include/asm/kprobes.h b/arch/x86/include/asm/kprobes.h
index 71ea2eab43d5..a2e9317aad49 100644
--- a/arch/x86/include/asm/kprobes.h
+++ b/arch/x86/include/asm/kprobes.h
@@ -50,8 +50,6 @@ extern const int kretprobe_blacklist_size;

void arch_remove_kprobe(struct kprobe *p);

-extern void arch_kprobe_override_function(struct pt_regs *regs);
-
/* Architecture specific copy of original instruction*/
struct arch_specific_insn {
/* copy of the original instruction */
--
2.35.1