Skip to contentSkip to conversation

omap3: fix compile-time warnings

PATCH New Sanjeev Premi 2 participants 2 messages Feb 11, 2011 – Mar 1, 2011

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

PATCH 1/1 omap3: fix compile-time warnings

This patch fixes these warnings when building kernel for OMAP3EVM only.

CC arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.o
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:95: warning:
'dsp_24xx_wkdeps' defined but not used
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:119: warning:
'mpu_24xx_wkdeps' defined but not used
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:147: warning:
'core_24xx_wkdeps' defined but not used

The problem should be noticed when building for other OMAP3 platforms (only) as well.

---
 arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c +3 -0
index e6f0d18..8134bb3 100644
@@ -89,6 +89,8 @@ static struct clkdm_dep gfx_sgx_wkdeps[] = {
 
 /* 24XX-specific possible dependencies */
 
+#ifdef CONFIG_ARCH_OMAP2
+
 /* Wakeup dependency source arrays */
 
 /* 2420/2430 PM_WKDEP_DSP: CORE, MPU, WKUP */
@@ -168,6 +170,7 @@ static struct clkdm_dep core_24xx_wkdeps[] = {
 	{ NULL },
 };
 
+#endif /* CONFIG_ARCH_OMAP2 */
 
 /* 2430-specific possible wakeup dependencies */
 
Signature · 1 line
1.7.2.2
maintainer
#1 lore raw

PATCH 1/1 omap3: fix compile-time warnings

Quoted 11 lines · Sanjeev Premi

This patch fixes these warnings when building kernel for OMAP3EVM only.

CC arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.o
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:95: warning:
'dsp_24xx_wkdeps' defined but not used
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:119: warning:
'mpu_24xx_wkdeps' defined but not used
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:147: warning:
'core_24xx_wkdeps' defined but not used

Quoted 4 lines

The problem should be noticed when building for other OMAP3 platforms (only) as well.

I just noticed this patch when digging through Patchwork. I've dropped my (later) patch which does the same thing and applied this one instead for the 2.6.39 queue.

- Paul