2022-09-14 11:28:13

by Gaosheng Cui

[permalink] [raw]
Subject: [PATCH 2/2] x86/kprobes: remove unused arch_kprobe_override_function() declaration

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.

Signed-off-by: Gaosheng Cui <[email protected]>
---
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.25.1