diff mbox

arm: mxs: include asm/processor.h for cpu_relax()

Message ID 1306316097-27926-1-git-send-email-w.sang@pengutronix.de
State New
Headers show

Commit Message

Wolfram Sang May 25, 2011, 9:34 a.m. UTC
I get this build error as of today:

arch/arm/mach-mxs/ocotp.c: In function 'mxs_get_ocotp':
arch/arm/mach-mxs/ocotp.c:54: error: implicit declaration of function 'cpu_relax'
make[2]: *** [arch/arm/mach-mxs/ocotp.o] Error 1

Looks like it has been indirectly included before which broke now.
Include it directly.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Shawn Guo <shawn.guo@freescale.com>
---
 arch/arm/mach-mxs/ocotp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Shawn Guo May 25, 2011, 10:44 a.m. UTC | #1
Hi Wolfram,

On Wed, May 25, 2011 at 11:34:57AM +0200, Wolfram Sang wrote:
> I get this build error as of today:
> 
> arch/arm/mach-mxs/ocotp.c: In function 'mxs_get_ocotp':
> arch/arm/mach-mxs/ocotp.c:54: error: implicit declaration of function 'cpu_relax'
> make[2]: *** [arch/arm/mach-mxs/ocotp.o] Error 1
> 
May I know the tree you are seeing this error with?
Wolfram Sang May 25, 2011, 10:47 a.m. UTC | #2
> May I know the tree you are seeing this error with?

linus-git as of today. Does it work for you?
Shawn Guo May 25, 2011, 11:46 a.m. UTC | #3
On Wed, May 25, 2011 at 11:34:57AM +0200, Wolfram Sang wrote:
> I get this build error as of today:
> 
> arch/arm/mach-mxs/ocotp.c: In function 'mxs_get_ocotp':
> arch/arm/mach-mxs/ocotp.c:54: error: implicit declaration of function 'cpu_relax'
> make[2]: *** [arch/arm/mach-mxs/ocotp.o] Error 1
> 
> Looks like it has been indirectly included before which broke now.
> Include it directly.
> 
> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> Cc: Shawn Guo <shawn.guo@freescale.com>
> ---
Acked-by: Shawn Guo <shawn.guo@freescale.com>
Shawn Guo June 29, 2011, 7:10 a.m. UTC | #4
Hi Sascha,

Can you apply this patch on your for-next?

Regards,
Shawn

On Wed, May 25, 2011 at 11:34:57AM +0200, Wolfram Sang wrote:
> I get this build error as of today:
> 
> arch/arm/mach-mxs/ocotp.c: In function 'mxs_get_ocotp':
> arch/arm/mach-mxs/ocotp.c:54: error: implicit declaration of function 'cpu_relax'
> make[2]: *** [arch/arm/mach-mxs/ocotp.o] Error 1
> 
> Looks like it has been indirectly included before which broke now.
> Include it directly.
> 
> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> Cc: Shawn Guo <shawn.guo@freescale.com>
> ---
>  arch/arm/mach-mxs/ocotp.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c
> index 65157a3..54add60 100644
> --- a/arch/arm/mach-mxs/ocotp.c
> +++ b/arch/arm/mach-mxs/ocotp.c
> @@ -16,6 +16,8 @@
>  #include <linux/err.h>
>  #include <linux/mutex.h>
>  
> +#include <asm/processor.h>	/* for cpu_relax() */
> +
>  #include <mach/mxs.h>
>  
>  #define OCOTP_WORD_OFFSET		0x20
> -- 
> 1.7.2.5
>
Sascha Hauer June 29, 2011, 8:25 p.m. UTC | #5
On Wed, Jun 29, 2011 at 03:10:27PM +0800, Shawn Guo wrote:
> Hi Sascha,
> 
> Can you apply this patch on your for-next?

Done

Sascha

> 
> Regards,
> Shawn
> 
> On Wed, May 25, 2011 at 11:34:57AM +0200, Wolfram Sang wrote:
> > I get this build error as of today:
> > 
> > arch/arm/mach-mxs/ocotp.c: In function 'mxs_get_ocotp':
> > arch/arm/mach-mxs/ocotp.c:54: error: implicit declaration of function 'cpu_relax'
> > make[2]: *** [arch/arm/mach-mxs/ocotp.o] Error 1
> > 
> > Looks like it has been indirectly included before which broke now.
> > Include it directly.
> > 
> > Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
> > Cc: Shawn Guo <shawn.guo@freescale.com>
> > ---
> >  arch/arm/mach-mxs/ocotp.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c
> > index 65157a3..54add60 100644
> > --- a/arch/arm/mach-mxs/ocotp.c
> > +++ b/arch/arm/mach-mxs/ocotp.c
> > @@ -16,6 +16,8 @@
> >  #include <linux/err.h>
> >  #include <linux/mutex.h>
> >  
> > +#include <asm/processor.h>	/* for cpu_relax() */
> > +
> >  #include <mach/mxs.h>
> >  
> >  #define OCOTP_WORD_OFFSET		0x20
> > -- 
> > 1.7.2.5
> > 
> 
>
diff mbox

Patch

diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c
index 65157a3..54add60 100644
--- a/arch/arm/mach-mxs/ocotp.c
+++ b/arch/arm/mach-mxs/ocotp.c
@@ -16,6 +16,8 @@ 
 #include <linux/err.h>
 #include <linux/mutex.h>
 
+#include <asm/processor.h>	/* for cpu_relax() */
+
 #include <mach/mxs.h>
 
 #define OCOTP_WORD_OFFSET		0x20