Skip to contentSkip to conversation

OMAP4: PRM: fix build breakage when CONFIG_OF is not defined

PATCH In review Luciano Coelho 2 participants 3 messages Feb 8, 2012 – Feb 15, 2012

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

PATCH v2 1/1 OMAP4: PRM: fix build breakage when CONFIG_OF is not defined

Since 3.3-rc1, prm44xx.c build breaks if CONFIG_OF is not set:

arch/arm/mach-omap2/prm44xx.c:41: error: 'OMAP44XX_IRQ_PRCM' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/prm44xx.o] Error 1

This is because of a missing include, which is added indirectly if CONFIG_OF is defined. This problem was introduced in commit 2f31b51 (ARM: OMAP4: PRM: use PRCM interrupt handler).

---
v2: changed the commit log to use abbrev sha and include the commit subject

 arch/arm/mach-omap2/prm44xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/prm44xx.c +1 -0
index 33dd655..f2e06ad 100644
@@ -20,6 +20,7 @@
 #include "common.h"
 #include <plat/cpu.h>
 #include <plat/prcm.h>
+#include <plat/irqs.h>
 
 #include "vp.h"
 #include "prm44xx.h"
Signature · 1 line
1.7.5.4
maintainer
#1 lore raw
Quoted 5 lines · Luciano Coelho

Since 3.3-rc1, prm44xx.c build breaks if CONFIG_OF is not set:

arch/arm/mach-omap2/prm44xx.c:41: error: 'OMAP44XX_IRQ_PRCM' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/prm44xx.o] Error 1

Quoted 7 lines

This is because of a missing include, which is added indirectly if CONFIG_OF is defined. This problem was introduced in commit 2f31b51 (ARM: OMAP4: PRM: use PRCM interrupt handler).

A similar patch should be already in mainline kernel queued by Russell.

Tony

Quoted 21 lines

---
v2: changed the commit log to use abbrev sha and include the commit subject

 arch/arm/mach-omap2/prm44xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/prm44xx.c +1 -0
index 33dd655..f2e06ad 100644
@@ -20,6 +20,7 @@
 #include "common.h"
 #include <plat/cpu.h>
 #include <plat/prcm.h>
+#include <plat/irqs.h>
 
 #include "vp.h"
 #include "prm44xx.h"
Signature · 1 line
1.7.5.4
#2 lore raw

Hi Tony,

Quoted 10 lines · Tony Lindgren
Quoted 9 lines · Luciano Coelho

Since 3.3-rc1, prm44xx.c build breaks if CONFIG_OF is not set:

arch/arm/mach-omap2/prm44xx.c:41: error: 'OMAP44XX_IRQ_PRCM' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/prm44xx.o] Error 1

This is because of a missing include, which is added indirectly if CONFIG_OF is defined. This problem was introduced in commit 2f31b51 (ARM: OMAP4: PRM: use PRCM interrupt handler).

Quoted 5 lines
Quoted 3 lines

A similar patch should be already in mainline kernel queued by Russell.

Right, someone pointed this out to me after I sent the two patches. Sorry for the trouble, I should have looked more carefully before jumping in to fix this stuff. ;)

Signature · 2 lines
Cheers,
Luca.