Skip to contentSkip to conversation

ARM: tegra: pm: fix build error w/o PM_SLEEP

PATCH New Joseph Lo 2 participants 2 messages Apr 12, 2013 – Apr 15, 2013

Subsystems (3)
lore
Share & tools
lore

Joseph Lo

author
#0 lore raw

PATCH 1/1 ARM: tegra: pm: fix build error w/o PM_SLEEP

This fixes the building error when the PM_SLEEP is disabled. The fucntional defintion of "tegra_pm_validate_suspend_mode" without "static inline" would become a multiple definition error.

---
 arch/arm/mach-tegra/pm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-tegra/pm.h +1 -1
index 9d2d038..778a4aa 100644
@@ -39,7 +39,7 @@ enum tegra_suspend_mode tegra_pm_validate_suspend_mode(
 				enum tegra_suspend_mode mode);
 void tegra_init_suspend(void);
 #else
-enum tegra_suspend_mode tegra_pm_validate_suspend_mode(
+static inline enum tegra_suspend_mode tegra_pm_validate_suspend_mode(
 				enum tegra_suspend_mode mode)
 {
 	return TEGRA_SUSPEND_NONE;
Signature · 1 line
1.8.2
#1 lore raw

PATCH 1/1 ARM: tegra: pm: fix build error w/o PM_SLEEP

Quoted 3 lines · Joseph Lo

This fixes the building error when the PM_SLEEP is disabled. The fucntional defintion of "tegra_pm_validate_suspend_mode" without "static inline" would become a multiple definition error.

Thanks. I have forwarded this to arm-soc to be applied.