Skip to contentSkip to conversation

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

PATCH New Wolfram Sang 3 participants 6 messages May 25, 2011 – Jun 29, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

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.

---
 arch/arm/mach-mxs/ocotp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-mxs/ocotp.c +2 -0
index 65157a3..54add60 100644
@@ -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
Signature · 1 line
1.7.2.5
#1 lore raw

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

Hi Wolfram,

Quoted 6 lines · Wolfram Sang

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?

Signature · 2 lines
Regards,
Shawn
#2 lore raw

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

Quoted 2 lines

May I know the tree you are seeing this error with?

linus-git as of today. Does it work for you?

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110525/c765e16e/attachment.sig>
#3 lore raw

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

In reply to Wolfram Sang
Quoted 6 lines · Wolfram Sang

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

Quoted 6 lines

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

---

Signature · 2 lines
Regards,
Shawn
#4 lore raw

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

In reply to Wolfram Sang

Hi Sascha,

Can you apply this patch on your for-next?

Regards,
Shawn

Quoted 31 lines · Wolfram Sang

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.

---
 arch/arm/mach-mxs/ocotp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-mxs/ocotp.c +2 -0
index 65157a3..54add60 100644
@@ -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
Signature · 1 line
1.7.2.5
maintainer
#5 lore raw

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

Quoted 3 lines · Shawn Guo

Hi Sascha,

Can you apply this patch on your for-next?

Done

Sascha

Quoted 38 lines

Regards,
Shawn

Quoted 31 lines · Wolfram Sang

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.

---
 arch/arm/mach-mxs/ocotp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-mxs/ocotp.c +2 -0
index 65157a3..54add60 100644
@@ -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
Signature · 1 line
1.7.2.5
Signature · 4 lines
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 |