Skip to contentSkip to conversation

PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF

PATCH In review Sanjeev Premi 2 participants 2 messages Mar 12, 2009

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

PATCH 1/1 PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF

Fixes the compile warnings:

CC arch/arm/mach-omap2/pm.o
arch/arm/mach-omap2/pm.c:47: warning: 'vdd1_locked' defined but not used arch/arm/mach-omap2/pm.c:48: warning: 'vdd2_locked' defined but not used

---
 arch/arm/mach-omap2/pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/pm.c +2 -0
index 61c6dfb..0fe6f1a 100644
@@ -44,8 +44,10 @@ unsigned short clocks_off_while_idle;
 unsigned short enable_off_mode;
 unsigned short voltage_off_while_idle;
 atomic_t sleep_block = ATOMIC_INIT(0);
+#ifdef CONFIG_OMAP_PM_SRF
 static int vdd1_locked;
 static int vdd2_locked;
+#endif
 
 static ssize_t idle_show(struct kobject *, struct kobj_attribute *, char *);
 static ssize_t idle_store(struct kobject *k, struct kobj_attribute *,
Signature · 1 line
1.5.6
#1 lore raw
Quoted 7 lines · Sanjeev Premi

Fixes the compile warnings:

CC arch/arm/mach-omap2/pm.o
arch/arm/mach-omap2/pm.c:47: warning: 'vdd1_locked' defined but not used arch/arm/mach-omap2/pm.c:48: warning: 'vdd2_locked' defined but not used

Thanks, pushing to PM, with a slight change. I moved the definitions down into another #ifdef CONFIG_OMAP_PM_SRF instead of adding a new one.

Kevin

Quoted 26 lines
---
 arch/arm/mach-omap2/pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/pm.c +2 -0
index 61c6dfb..0fe6f1a 100644
@@ -44,8 +44,10 @@ unsigned short clocks_off_while_idle;
 unsigned short enable_off_mode;
 unsigned short voltage_off_while_idle;
 atomic_t sleep_block = ATOMIC_INIT(0);
+#ifdef CONFIG_OMAP_PM_SRF
 static int vdd1_locked;
 static int vdd2_locked;
+#endif
 
 static ssize_t idle_show(struct kobject *, struct kobj_attribute *, char *);
 static ssize_t idle_store(struct kobject *k, struct kobj_attribute *,
Signature · 6 lines
1.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html