From: David Singleton Date: Wed, 18 May 2005 20:59:50 +0000 (-0700) Subject: [PATCH] ARM: OMAP: fix for modversions bug X-Git-Tag: v2.6.13-omap1~150 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3b40dee9b0d1e0569847463d5e233ccfec4d8aae;p=linux-2.6-omap-h63xx.git [PATCH] ARM: OMAP: fix for modversions bug EXPORT_SYMBOL_ALIAS add corresponding entry to the kernel crc table for each symbol alias added to the kernel symbol table. Signed-off-by: David Singleton Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c index 4c38bd8bc29..6a4621890ab 100644 --- a/arch/arm/kernel/armksyms.c +++ b/arch/arm/kernel/armksyms.c @@ -44,7 +44,10 @@ extern void fp_enter(void); * This has a special calling convention; it doesn't * modify any of the usual registers, except for LR. */ +#define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "") + #define EXPORT_SYMBOL_ALIAS(sym,orig) \ + EXPORT_CRC_ALIAS(sym) \ const struct kernel_symbol __ksymtab_##sym \ __attribute__((section("__ksymtab"))) = \ { (unsigned long)&orig, #sym };