summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/kprobes.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-11-10 13:59:05 +0300
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-11-10 13:59:05 +0300
commitabc28463c81853e4fdf8d009f71b2a3ce62a6f40 (patch)
tree7e78bacd8eb7c2c7b79047f6ec9a01fd615b1941 /arch/s390/include/asm/kprobes.h
parent3afe73372966d4d8b40922d7229c8ecb1c2ca287 (diff)
downloadlinux-abc28463c81853e4fdf8d009f71b2a3ce62a6f40.tar.xz
kprobes: unify kprobes_exceptions_nofify() prototypes
Most architectures that support kprobes declare this function in their own asm/kprobes.h header and provide an override, but some are missing the prototype, which causes a warning for the __weak stub implementation: kernel/kprobes.c:1865:12: error: no previous prototype for 'kprobe_exceptions_notify' [-Werror=missing-prototypes] 1865 | int __weak kprobe_exceptions_notify(struct notifier_block *self, Move the prototype into linux/kprobes.h so it is visible to all the definitions. Link: https://lore.kernel.org/all/20231108125843.3806765-4-arnd@kernel.org/ Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'arch/s390/include/asm/kprobes.h')
-rw-r--r--arch/s390/include/asm/kprobes.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/include/asm/kprobes.h b/arch/s390/include/asm/kprobes.h
index 21b9e5290c04..01f1682a73b7 100644
--- a/arch/s390/include/asm/kprobes.h
+++ b/arch/s390/include/asm/kprobes.h
@@ -73,8 +73,6 @@ struct kprobe_ctlblk {
void arch_remove_kprobe(struct kprobe *p);
int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
-int kprobe_exceptions_notify(struct notifier_block *self,
- unsigned long val, void *data);
#define flush_insn_slot(p) do { } while (0)