diff --git a/arch/x86/kernel/kprobes.c b/arch/x86/kernel/kprobes.c index 53ba6a5b655073aa537231bb6241ca9805e4615f..93aff49798ee86e819d05dcc2378e56efb8c75fd 100644 --- a/arch/x86/kernel/kprobes.c +++ b/arch/x86/kernel/kprobes.c @@ -583,8 +583,8 @@ static int __kprobes kprobe_handler(struct pt_regs *regs) * When a retprobed function returns, this code saves registers and * calls trampoline_handler() runs, which calls the kretprobe's handler. */ - void __kprobes kretprobe_trampoline_holder(void) - { +void __kprobes kretprobe_trampoline_holder(void) +{ asm volatile ( ".global kretprobe_trampoline\n" "kretprobe_trampoline: \n" @@ -670,7 +670,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs) " popf\n" #endif " ret\n"); - } +} /* * Called from kretprobe_trampoline