Skip to contentSkip to conversation

PM: Fix compile error

PATCH In review Sanjeev Premi 2 participants 2 messages Nov 21, 2008 – Nov 25, 2008

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

PATCH 1/1 PM: Fix compile error

Function pm_dbg_update_time() is defined in within an #ifdef CONFIG_DEBUG_FS; leading to this error:

arch/arm/mach-omap2/built-in.o: In function `_pwrdm_state_switch':
/db/psp_git/users/a0756819/omap-kern-latest/arch/arm/mach-omap2/powerdomain.c:139: undefined reference to `pm_dbg_update_time'

---
 arch/arm/mach-omap2/powerdomain.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/powerdomain.c +2 -0
index 0334609..081b3b6 100644
@@ -136,7 +136,9 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
 	if (state != prev)
 		pwrdm->state_counter[state]++;
 
+#ifdef CONFIG_DEBUG_FS
 	pm_dbg_update_time(pwrdm, prev);
+#endif
 
 	pwrdm->state = state;
 
Signature · 1 line
1.5.6
#1 lore raw

Sanjeev,

Quoted 6 lines · Sanjeev Premi

Function pm_dbg_update_time() is defined in within an #ifdef CONFIG_DEBUG_FS; leading to this error:

arch/arm/mach-omap2/built-in.o: In function `_pwrdm_state_switch':
/db/psp_git/users/a0756819/omap-kern-latest/arch/arm/mach-omap2/powerdomain.c:139: undefined reference to `pm_dbg_update_time'

Thanks. I have a similar fix for this already staged for the next PM branch.

Kevin

Quoted 26 lines
---
 arch/arm/mach-omap2/powerdomain.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/powerdomain.c +2 -0
index 0334609..081b3b6 100644
@@ -136,7 +136,9 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
 	if (state != prev)
 		pwrdm->state_counter[state]++;
 
+#ifdef CONFIG_DEBUG_FS
 	pm_dbg_update_time(pwrdm, prev);
+#endif
 
 	pwrdm->state = state;
 
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