Skip to contentSkip to conversation

iMX: Fix module build

PATCH New Arnaud Patard (Rtp) 3 participants 3 messages Oct 18, 2011 – Oct 19, 2011

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 iMX: Fix module build

http://patchwork.ozlabs.org/patch/118547/

Regards,
Shawn

Quoted 44 lines · Arnaud Patard

When trying to build some modules with the "hint" branch of imx tree, they're now failing to build at modpost with an error like this :

OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 69 modules
ERROR: "imx_ioremap" [sound/soc/imx/snd-soc-imx.ko] undefined!
ERROR: "imx_ioremap" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

It seems to be caused by commit f548897ffc0510885af27e22a11f449fe5e0cbbd, which introduced imx_ioremap without EXPORT_SYMBOL.

Index: linux-2.6-submit/arch/arm/plat-mxc/system.c
===================================================================

arch/arm/plat-mxc/system.c +2 -0
@@ -21,6 +21,7 @@
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/delay.h>
+#include <linux/module.h>
 
 #include <mach/hardware.h>
 #include <mach/common.h>
@@ -30,6 +31,7 @@
 
 void (*imx_idle)(void) = NULL;
 void __iomem *(*imx_ioremap)(unsigned long, size_t, unsigned int) = NULL;
+EXPORT_SYMBOL(imx_ioremap);
 
 static void __iomem *wdog_base;
 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

PATCH 1/1 iMX: Fix module build

In reply to Arnaud Patard (Rtp)

Hello.

Quoted 12 lines · Arnaud Patard (Rtp)

When trying to build some modules with the "hint" branch of imx tree, they're now failing to build at modpost with an error like this :

OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 69 modules
ERROR: "imx_ioremap" [sound/soc/imx/snd-soc-imx.ko] undefined!
ERROR: "imx_ioremap" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Quoted 1 line

It seems to be caused by commit f548897ffc0510885af27e22a11f449fe5e0cbbd,

Please specify that commit's summary in parens.

Quoted 3 lines

which introduced imx_ioremap without EXPORT_SYMBOL.

WBR, Sergei