Skip to content

Commit

Permalink
sh: kprobes: kretprobe_trampoline needs to be global.
Browse files Browse the repository at this point in the history
Needed by CONFIG_TRACING.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Sep 8, 2008
1 parent 61098a0 commit 6eb2139
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/sh/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
*/
static void __used kretprobe_trampoline_holder(void)
{
asm volatile ("kretprobe_trampoline: \n" "nop\n");
asm volatile (".globl kretprobe_trampoline\n"
"kretprobe_trampoline:\n\t"
"nop\n");
}

/*
Expand Down

0 comments on commit 6eb2139

Please sign in to comment.