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/[email protected]/ Fixes: 24ba613 ("ARM kprobes: core code") Acked-by: Masami Hiramatsu <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 44cc641 commit 1f32312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)