arm: mxs: include asm/processor.h for cpu_relax()
Subsystems (3)
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
@@ -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
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
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>
PATCH 1/1 arm: mxs: include asm/processor.h for cpu_relax()
In reply to Wolfram SangQuoted 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.
Signed-off-by Wolfram Sang <[email protected]>Cc Shawn Guo <[email protected]>---
Signature · 2 lines
Regards, Shawn
PATCH 1/1 arm: mxs: include asm/processor.h for cpu_relax()
In reply to Wolfram SangHi 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 1Looks like it has been indirectly included before which broke now. Include it directly.
Signed-off-by Wolfram Sang <[email protected]>Cc Shawn Guo <[email protected]>--- arch/arm/mach-mxs/ocotp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/mach-mxs/ocotp.c +2
-0@@ -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 0x20Signature · 1 line
1.7.2.5
Sascha Hauer
maintainerPATCH 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,
ShawnQuoted 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 1Looks like it has been indirectly included before which broke now. Include it directly.
Signed-off-by Wolfram Sang <[email protected]>Cc Shawn Guo <[email protected]>--- arch/arm/mach-mxs/ocotp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/mach-mxs/ocotp.c +2
-0@@ -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 0x20Signature · 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 |