Skip to contentSkip to conversation

ARM: prom.h: Fix build error by removing unneeded header file

PATCH New Fabio Estevam 3 participants 3 messages Jan 2, 2012 – Jan 4, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: prom.h: Fix build error by removing unneeded header file

Fix the following build error:

CC [M] fs/udf/balloc.o
In file included from /home/fabio/next/linux-next/arch/arm/include/asm/prom.h:16,

                 from include/linux/of.h:140,
                 from include/asm-generic/gpio.h:7,
                 from arch/arm/plat-mxc/include/mach/irqs.h:14,
                 from /home/fabio/next/linux-next/arch/arm/include/asm/irq.h:4,
                 from /home/fabio/next/linux-next/arch/arm/include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:7,
                 from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from include/linux/buffer_head.h:13,
                 from fs/udf/udfdecl.h:11,
                 from fs/udf/balloc.c:22:

/home/fabio/next/linux-next/arch/arm/include/asm/setup.h:146: error: redefinition of 'struct tag'

---
This build error happens on linux-next by doing:
make imx_v6_v7_defconfig
make

 arch/arm/include/asm/prom.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/include/asm/prom.h +0 -1
index 6f65ca8..ee03633 100644
@@ -13,7 +13,6 @@
 
 #ifdef CONFIG_OF
 
-#include <asm/setup.h>
 #include <asm/irq.h>
 
 extern struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
Signature · 1 line
1.7.1
Applied
#1 lore raw

PATCH 1/1 ARM: prom.h: Fix build error by removing unneeded header file

Quoted 15 lines · Fabio Estevam

Fix the following build error:

CC [M] fs/udf/balloc.o
In file included from /home/fabio/next/linux-next/arch/arm/include/asm/prom.h:16,

                 from include/linux/of.h:140,
                 from include/asm-generic/gpio.h:7,
                 from arch/arm/plat-mxc/include/mach/irqs.h:14,
                 from /home/fabio/next/linux-next/arch/arm/include/asm/irq.h:4,
                 from /home/fabio/next/linux-next/arch/arm/include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:7,
                 from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from include/linux/buffer_head.h:13,
                 from fs/udf/udfdecl.h:11,
                 from fs/udf/balloc.c:22:
Quoted 3 lines

/home/fabio/next/linux-next/arch/arm/include/asm/setup.h:146: error: redefinition of 'struct tag'

Well that's ugly. There are two definitions of struct tag. The patch does fix the compile error, but it could easily reoccur. Ideally one of the structures should be renamed.

Applied, thanks

g.

Quoted 23 lines

---
This build error happens on linux-next by doing:
make imx_v6_v7_defconfig
make

 arch/arm/include/asm/prom.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/include/asm/prom.h +0 -1
index 6f65ca8..ee03633 100644
@@ -13,7 +13,6 @@
 
 #ifdef CONFIG_OF
 
-#include <asm/setup.h>
 #include <asm/irq.h>
 
 extern struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/1 ARM: prom.h: Fix build error by removing unneeded header file

Quoted 18 lines · Grant Likely
Quoted 17 lines · Fabio Estevam

Fix the following build error:

CC [M] fs/udf/balloc.o
In file included from /home/fabio/next/linux-next/arch/arm/include/asm/prom.h:16,

                 from include/linux/of.h:140,
                 from include/asm-generic/gpio.h:7,
                 from arch/arm/plat-mxc/include/mach/irqs.h:14,
                 from /home/fabio/next/linux-next/arch/arm/include/asm/irq.h:4,
                 from /home/fabio/next/linux-next/arch/arm/include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:7,
                 from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from include/linux/buffer_head.h:13,
                 from fs/udf/udfdecl.h:11,
                 from fs/udf/balloc.c:22:

/home/fabio/next/linux-next/arch/arm/include/asm/setup.h:146: error: redefinition of 'struct tag'

Quoted 5 lines
Quoted 1 line

Well that's ugly. There are two definitions of struct tag. The patch does fix the compile error, but it could easily reoccur. Ideally one of the structures should be renamed.

I'm not renaming the ARM one as it's an API thing which gets shared with boot loaders. Changing that is likely to cause breakage outside the kernel tree.