Skip to contentSkip to conversation

ARM: iop: add missing includes

PATCH In review Olof Johansson 4 participants 4 messages Feb 15, 2012 – Mar 19, 2012

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

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
index 077c323..ec0224d 100644
@@ -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
index 6a85a0c..a6ee3b6 100644
@@ -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
#1 lore raw

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.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]

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.

#2 lore raw
In reply to Olof Johansson

Hi,

Quoted 8 lines · Olof Johansson

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]

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
index 077c323..ec0224d 100644
@@ -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
index 6a85a0c..a6ee3b6 100644
@@ -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.

#3 lore raw
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.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]

Quoted 5 lines
Quoted 1 line

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>