kprobes: unify kprobes_exceptions_nofify() prototypes
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2023 10:59:05 +0000 (19:59 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 10 Nov 2023 10:59:05 +0000 (19:59 +0900)
commitabc28463c81853e4fdf8d009f71b2a3ce62a6f40
tree7e78bacd8eb7c2c7b79047f6ec9a01fd615b1941
parent3afe73372966d4d8b40922d7229c8ecb1c2ca287
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>
arch/arc/include/asm/kprobes.h
arch/arm/include/asm/kprobes.h
arch/arm64/include/asm/kprobes.h
arch/mips/include/asm/kprobes.h
arch/powerpc/include/asm/kprobes.h
arch/s390/include/asm/kprobes.h
arch/sh/include/asm/kprobes.h
arch/sparc/include/asm/kprobes.h
arch/x86/include/asm/kprobes.h
include/linux/kprobes.h