From: Paul Mundt Date: Mon, 8 Sep 2008 23:13:28 +0000 (+0900) Subject: sh: kprobes: kretprobe_trampoline needs to be global. X-Git-Tag: v2.6.28-rc1~99^2~63 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6eb2139b3dc3e1c5181a7cdf83a517c57c34bb12;p=linux-2.6-omap-h63xx.git sh: kprobes: kretprobe_trampoline needs to be global. Needed by CONFIG_TRACING. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/kprobes.c b/arch/sh/kernel/kprobes.c index e357e3669a3..c96850b061f 100644 --- a/arch/sh/kernel/kprobes.c +++ b/arch/sh/kernel/kprobes.c @@ -290,7 +290,9 @@ no_kprobe: */ 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"); } /*