ARM: iop: add missing includes
Subsystems (2)
PATCH 1/1 ARM: iop: add missing includes
Resolves two build breaks. One is a boatload of "unknown type name 'u32'" in iop3xx.h due to missing include of <linux/types.h>.
The other is:arch/arm/plat-iop/restart.c: In function 'iop3xx_restart':arch/arm/plat-iop/restart.c:18:2: error: implicit declaration of function 'soft_restart' [-Werror=implicit-function-declaration]
---
arch/arm/include/asm/hardware/iop3xx.h | 2 ++ arch/arm/plat-iop/restart.c | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/include/asm/hardware/iop3xx.h +2 -0
@@ -15,6 +15,8 @@#ifndef __IOP3XX_H#define __IOP3XX_H +#include <linux/types.h> +/* * IOP3XX GPIO handling */
arch/arm/plat-iop/restart.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation. */ #include <asm/hardware/iop3xx.h> +#include <asm/system.h> #include <mach/hardware.h> void iop3xx_restart (char mode,const char *cmd)
Signature · 1 line
1.7.9.209.gb6b3b
PATCH 1/1 ARM: iop: add missing includes
Quoted 6 lines · Olof Johansson
Resolves two build breaks. One is a boatload of "unknown type name 'u32'" in
iop3xx.hdue to missing include of <linux/types.h>.The other is:
arch/arm/plat-iop/restart.c: In function 'iop3xx_restart':arch/arm/plat-iop/restart.c:18:2: error: implicit declaration of function 'soft_restart' [-Werror=implicit-function-declaration]
Hmm, I think system.h has become quite a mess over the years.
I should've done something about that with the restart changes, and created an asm/restart.h - the entire kernel doesn't need to know about our soft restart stuff. Looks like there aren't that many users so at least that kind of cleanup would be relatively simple.
Hi,
Quoted 8 lines · Olof Johansson
Resolves two build breaks. One is a boatload of "unknown type name 'u32'" in
iop3xx.hdue to missing include of <linux/types.h>.The other is:
arch/arm/plat-iop/restart.c: In function 'iop3xx_restart':arch/arm/plat-iop/restart.c:18:2: error: implicit declaration of function 'soft_restart' [-Werror=implicit-function-declaration]Signed-off-by Olof Johansson <[email protected]>
Any chance to get this patch into 3.3.1 (stable), when and if such is made?
The v3.3 fails to build for IOP boards without this.
Quoted 33 lines
---
arch/arm/include/asm/hardware/iop3xx.h | 2 ++ arch/arm/plat-iop/restart.c | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)arch/arm/include/asm/hardware/iop3xx.h +2
-0@@ -15,6 +15,8 @@#ifndef __IOP3XX_H#define __IOP3XX_H +#include <linux/types.h> +/* * IOP3XX GPIO handling */ arch/arm/plat-iop/restart.c +1
-0@@ -8,6 +8,7 @@* published by the Free Software Foundation. */ #include <asm/hardware/iop3xx.h> +#include <asm/system.h> #include <mach/hardware.h> void iop3xx_restart (char mode,const char *cmd)Signature · 1 line
1.7.9.209.gb6b3b
A.
Quoted 10 lines · Aaro Koskinen
Hi,
Quoted 7 lines · Olof Johansson
Resolves two build breaks. One is a boatload of "unknown type name 'u32'" in
iop3xx.hdue to missing include of <linux/types.h>.The other is:
arch/arm/plat-iop/restart.c: In function 'iop3xx_restart':arch/arm/plat-iop/restart.c:18:2: error: implicit declaration of function 'soft_restart' [-Werror=implicit-function-declaration]
Quoted 5 lines
Quoted 1 line
Signed-off-by Olof Johansson <[email protected]>Any chance to get this patch into 3.3.1 (stable), when and if such is made?
The v3.3 fails to build for IOP boards without this.
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.
</formletter>