From: Paul Mundt Date: Sat, 11 Jul 2009 11:32:14 +0000 (+0900) Subject: sh: Use DECLARE_EXPORT() for mcount symbol export. X-Git-Tag: v2.6.32-rc1~640^2~95^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe27932052aebf77ac5f3e73962825d2aeb457a0;p=karo-tx-linux.git sh: Use DECLARE_EXPORT() for mcount symbol export. The function prototype for mcount is not defined if we are not building with ftrace support enabled, so use DECLARE_EXPORT() to stub one in. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/sh_ksyms_32.c b/arch/sh/kernel/sh_ksyms_32.c index 5b81116046c1..cec610888e28 100644 --- a/arch/sh/kernel/sh_ksyms_32.c +++ b/arch/sh/kernel/sh_ksyms_32.c @@ -107,7 +107,7 @@ EXPORT_SYMBOL(clear_user_page); #endif #ifdef CONFIG_MCOUNT -EXPORT_SYMBOL(mcount); +DECLARE_EXPORT(mcount); #endif EXPORT_SYMBOL(csum_partial); EXPORT_SYMBOL(csum_partial_copy_generic);