linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mxc: add missing include
@ 2012-01-26 10:43 Robert Schwebel
  2012-01-26 11:10 ` Shawn Guo
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schwebel @ 2012-01-26 10:43 UTC (permalink / raw)
  To: linux-arm-kernel

Without this include, we get the following error when building
imx_v4_v5_defconfig:

In file included from arch/arm/plat-mxc/include/mach/iomux-mx27.h:23:0,
                 from arch/arm/mach-imx/mach-imx27ipcam.c:22:
arch/arm/plat-mxc/include/mach/iomux-v1.h:99:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'imx_iomuxv1_init'

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 arch/arm/plat-mxc/include/mach/iomux-v1.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-mxc/include/mach/iomux-v1.h b/arch/arm/plat-mxc/include/mach/iomux-v1.h
index 6fa8a70..d9a7787 100644
--- a/arch/arm/plat-mxc/include/mach/iomux-v1.h
+++ b/arch/arm/plat-mxc/include/mach/iomux-v1.h
@@ -19,6 +19,8 @@
 #ifndef __MACH_IOMUX_V1_H__
 #define __MACH_IOMUX_V1_H__
 
+#include <linux/init.h>
+
 /*
 *  GPIO Module and I/O Multiplexer
 *  x = 0..3 for reg_A, reg_B, reg_C, reg_D
-- 
1.7.8.3

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

* [PATCH] ARM: mxc: add missing include
  2012-01-26 11:10 ` Shawn Guo
@ 2012-01-26 10:59   ` Robert Schwebel
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Schwebel @ 2012-01-26 10:59 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jan 26, 2012 at 07:10:14PM +0800, Shawn Guo wrote:
> Fabio had posted a patch below to fix the same issue, which is still
> pending on Sascha to apply.
> 
> http://www.spinics.net/lists/arm-kernel/msg154514.html
> 
> IMO, Fabio's the fixing is better than this patch, since we do not
> necessarily need '__init' annotation for function prototype declaration.

Ok, sounds good.

rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

* [PATCH] ARM: mxc: add missing include
  2012-01-26 10:43 [PATCH] ARM: mxc: add missing include Robert Schwebel
@ 2012-01-26 11:10 ` Shawn Guo
  2012-01-26 10:59   ` Robert Schwebel
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn Guo @ 2012-01-26 11:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jan 26, 2012 at 11:43:06AM +0100, Robert Schwebel wrote:
> Without this include, we get the following error when building
> imx_v4_v5_defconfig:
> 
> In file included from arch/arm/plat-mxc/include/mach/iomux-mx27.h:23:0,
>                  from arch/arm/mach-imx/mach-imx27ipcam.c:22:
> arch/arm/plat-mxc/include/mach/iomux-v1.h:99:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'imx_iomuxv1_init'
> 

Fabio had posted a patch below to fix the same issue, which is still
pending on Sascha to apply.

http://www.spinics.net/lists/arm-kernel/msg154514.html

IMO, Fabio's the fixing is better than this patch, since we do not
necessarily need '__init' annotation for function prototype declaration.

Regards,
Shawn

> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
> ---
>  arch/arm/plat-mxc/include/mach/iomux-v1.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/plat-mxc/include/mach/iomux-v1.h b/arch/arm/plat-mxc/include/mach/iomux-v1.h
> index 6fa8a70..d9a7787 100644
> --- a/arch/arm/plat-mxc/include/mach/iomux-v1.h
> +++ b/arch/arm/plat-mxc/include/mach/iomux-v1.h
> @@ -19,6 +19,8 @@
>  #ifndef __MACH_IOMUX_V1_H__
>  #define __MACH_IOMUX_V1_H__
>  
> +#include <linux/init.h>
> +
>  /*
>  *  GPIO Module and I/O Multiplexer
>  *  x = 0..3 for reg_A, reg_B, reg_C, reg_D
> -- 
> 1.7.8.3

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

end of thread, other threads:[~2012-01-26 11:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 10:43 [PATCH] ARM: mxc: add missing include Robert Schwebel
2012-01-26 11:10 ` Shawn Guo
2012-01-26 10:59   ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).