Skip to content

Commit 1f32312

Browse files
arndbRussell King (Oracle)
authored andcommitted
ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype
With extra warnings enabled, gcc complains about this function definition: arch/arm/probes/kprobes/core.c: In function 'arch_init_kprobes': arch/arm/probes/kprobes/core.c:465:12: warning: old-style function definition [-Wold-style-definition] 465 | int __init arch_init_kprobes() Link: https://lore.kernel.org/all/20201027093057.c685a14b386acacb3c449e3d@kernel.org/ Fixes: 24ba613 ("ARM kprobes: core code") Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 44cc641 commit 1f32312

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm/probes/kprobes/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static struct undef_hook kprobes_arm_break_hook = {
439439

440440
#endif /* !CONFIG_THUMB2_KERNEL */
441441

442-
int __init arch_init_kprobes()
442+
int __init arch_init_kprobes(void)
443443
{
444444
arm_probes_decode_init();
445445
#ifdef CONFIG_THUMB2_KERNEL

0 commit comments

Comments
 (0)