Skip to contentSkip to conversation

OMAP4 randconfig failure: Zynq

DISCUSSION Russell King - ARM Linux 3 participants 6 messages Jan 24, 2013

Subsystems (3)
lore
Share & tools
lore
#1 lore raw
Quoted 6 lines · Russell King - ARM Linux

The OMAP4 randconfig build last night failed with this error:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

Full details at the usual place -
http://www.arm.linux.org.uk/developer/build/

Curious. This doesn't look like a valid config to me.

In particular, both ARCH_MULTIPLATFORM and ARCH_OMAP are selected, even though those selections should be mutually exclusive, since they fall under the same:

choice
prompt "ARM system type"
default ARCH_MULTIPLATFORM

Perhaps it's because CONFIG_ARCH_OMAP=y was setup in the seed?

oldconfig seems to complain, too:

.config:340:warning: override: ARCH_OMAP changes choice state

Josh

#2 lore raw
Quoted 9 lines · Josh Cartwright
Quoted 6 lines · Russell King - ARM Linux

The OMAP4 randconfig build last night failed with this error:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

Full details at the usual place -
http://www.arm.linux.org.uk/developer/build/

Curious. This doesn't look like a valid config to me.

I think you're wrong.

Quoted 9 lines

In particular, both ARCH_MULTIPLATFORM and ARCH_OMAP are selected, even though those selections should be mutually exclusive, since they fall under the same:

choice
prompt "ARM system type"
default ARCH_MULTIPLATFORM

Perhaps it's because CONFIG_ARCH_OMAP=y was setup in the seed?

ARCH_OMAP2PLUS selects ARCH_OMAP, and ARCH_OMAP2PLUS must be enabled to produce a configuration including any OMAP code.

Quoted 3 lines

oldconfig seems to complain, too:

.config:340:warning: override: ARCH_OMAP changes choice state

Err, nope, don't get that warning.

$ mkdir /tmp/build
$ wget -O /tmp/build/.config 'http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=3562'
$ emake -j2 O=/tmp/build/ oldconfig
  GEN     /tmp/build/Makefile
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#

So, the config system produced this configuration, and the config system believes it to be correct. The problem lies elsewhere.

Clearly from the error, for a configuration for an OMAP platform to be errored out by a Zynq error, that means there's something that Zynq is missing.

#3 lore raw
Quoted 48 lines · Russell King - ARM Linux
Quoted 9 lines · Josh Cartwright
Quoted 6 lines · Russell King - ARM Linux

The OMAP4 randconfig build last night failed with this error:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

Full details at the usual place -
http://www.arm.linux.org.uk/developer/build/

Curious. This doesn't look like a valid config to me.

I think you're wrong.

Quoted 9 lines

In particular, both ARCH_MULTIPLATFORM and ARCH_OMAP are selected, even though those selections should be mutually exclusive, since they fall under the same:

choice
prompt "ARM system type"
default ARCH_MULTIPLATFORM

Perhaps it's because CONFIG_ARCH_OMAP=y was setup in the seed?

ARCH_OMAP2PLUS selects ARCH_OMAP, and ARCH_OMAP2PLUS must be enabled to produce a configuration including any OMAP code.

Quoted 3 lines

oldconfig seems to complain, too:

.config:340:warning: override: ARCH_OMAP changes choice state

Err, nope, don't get that warning.

$ mkdir /tmp/build
$ wget -O /tmp/build/.config 'http://www.arm.linux.org.uk/developer/build/file.php?type=config&idx=3562'
$ emake -j2 O=/tmp/build/ oldconfig
  GEN     /tmp/build/Makefile
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
Quoted 6 lines

So, the config system produced this configuration, and the config system believes it to be correct. The problem lies elsewhere.

Clearly from the error, for a configuration for an OMAP platform to be errored out by a Zynq error, that means there's something that Zynq is missing.

And what's missing is _specific_ to Zynq. Let's look at the error again:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

What it means is that the "irqchip_init" identifier was not declared by anything before it has been used. That means arch/arm/mach-zynq/common.c is missing a required #include statement.

irqchip_init can be found in linux/irqchip.h. Does arch/arm/mach-zynq/common.c include this required include? No. Therefore, the build fails with the above error.

You need to add this include file...

#4 lore raw
Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines · Russell King - ARM Linux
Quoted 3 lines · Josh Cartwright
Quoted 2 lines · Russell King - ARM Linux

The OMAP4 randconfig build last night failed with this error:

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

Full details at the usual place -
http://www.arm.linux.org.uk/developer/build/

Curious. This doesn't look like a valid config to me.

I think you're wrong.

Yes, indeed. I was running my tests using the wrong tree. I can see this issue in today's linux-next. Sorry for the noise.

[..]

Quoted 9 lines

And what's missing is _specific_ to Zynq. Let's look at the error again:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

What it means is that the "irqchip_init" identifier was not declared by anything before it has been used. That means arch/arm/mach-zynq/common.c is missing a required #include statement.

Quoted 5 lines

irqchip_init can be found in linux/irqchip.h. Does arch/arm/mach-zynq/common.c include this required include? No. Therefore, the build fails with the above error.

You need to add this include file...

Agreed, thanks. Looks like this was introduced with "ARM: use common irqchip_init for GIC init". Here's a patch to fix it up, it probably makes sense to be pulled into Rob's irqchip/gic-vic-move branch.

-- 8< --
Subject: [PATCH] ARM: zynq: include irqchip.h to prevent build failure

Commit 0529e315bbda5d502c93df2cfafba9bb337fbdf4 ("ARM: use common irqchip_init for GIC init") converts Zynq to make use of irqchip_init, but fails to include linux/irqchip.h. Fixes this build error:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

---
 arch/arm/mach-zynq/common.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-zynq/common.c +1 -0
index 8513b16..8a0b8ab 100644
@@ -20,6 +20,7 @@
 #include <linux/platform_device.h>
 #include <linux/clk.h>
 #include <linux/clk/zynq.h>
+#include <linux/irqchip.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
Signature · 1 line
1.8.1.1
#5 lore raw
Quoted 32 lines · Josh Cartwright
Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines · Russell King - ARM Linux
Quoted 3 lines · Josh Cartwright
Quoted 2 lines · Russell King - ARM Linux

The OMAP4 randconfig build last night failed with this error:

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

Full details at the usual place -
http://www.arm.linux.org.uk/developer/build/

Curious. This doesn't look like a valid config to me.

I think you're wrong.

Yes, indeed. I was running my tests using the wrong tree. I can see this issue in today's linux-next. Sorry for the noise.

[..]

Quoted 13 lines

And what's missing is _specific_ to Zynq. Let's look at the error again:

arch/arm/mach-zynq/common.c:99:14: error: 'irqchip_init' undeclared here (not in a function)

What it means is that the "irqchip_init" identifier was not declared by anything before it has been used. That means arch/arm/mach-zynq/common.c is missing a required #include statement.

irqchip_init can be found in linux/irqchip.h. Does arch/arm/mach-zynq/common.c include this required include? No. Therefore, the build fails with the above error.

Quoted 5 lines
Quoted 1 line

You need to add this include file...

Agreed, thanks. Looks like this was introduced with "ARM: use common irqchip_init for GIC init". Here's a patch to fix it up, it probably makes sense to be pulled into Rob's irqchip/gic-vic-move branch.

Can you also add zynq to multi_v7_defconfig if that is not already queued up.

Rob