public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [patch 1/1] iMX: Fix module build
@ 2011-10-18 13:13 Arnaud Patard (Rtp)
  2011-10-18 13:37 ` Shawn Guo
  2011-10-19 12:27 ` Sergei Shtylyov
  0 siblings, 2 replies; 3+ messages in thread
From: Arnaud Patard (Rtp) @ 2011-10-18 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

An embedded and charset-unspecified text was scrubbed...
Name: ioremap_build_fix.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111018/a2cf1069/attachment.ksh>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [patch 1/1] iMX: Fix module build
  2011-10-18 13:13 [patch 1/1] iMX: Fix module build Arnaud Patard (Rtp)
@ 2011-10-18 13:37 ` Shawn Guo
  2011-10-19 12:27 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2011-10-18 13:37 UTC (permalink / raw)
  To: linux-arm-kernel

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

Regards,
Shawn

On Tue, Oct 18, 2011 at 03:13:34PM +0200, Arnaud Patard wrote:
> 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.
> 
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> Index: linux-2.6-submit/arch/arm/plat-mxc/system.c
> ===================================================================
> --- linux-2.6-submit.orig/arch/arm/plat-mxc/system.c	2011-10-18 01:35:32.000000000 +0200
> +++ linux-2.6-submit/arch/arm/plat-mxc/system.c	2011-10-18 11:56:45.000000000 +0200
> @@ -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
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [patch 1/1] iMX: Fix module build
  2011-10-18 13:13 [patch 1/1] iMX: Fix module build Arnaud Patard (Rtp)
  2011-10-18 13:37 ` Shawn Guo
@ 2011-10-19 12:27 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2011-10-19 12:27 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 18-10-2011 17:13, Arnaud Patard (Rtp) wrote:

> 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,

    Please specify that commit's summary in parens.

> which introduced imx_ioremap without EXPORT_SYMBOL.

> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>

WBR, Sergei

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-19 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 13:13 [patch 1/1] iMX: Fix module build Arnaud Patard (Rtp)
2011-10-18 13:37 ` Shawn Guo
2011-10-19 12:27 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox