Skip to contentSkip to conversation

ARM: exynos: Fix warning due to missing 'inline' in stub

PATCH New Olof Johansson 2 participants 2 messages Dec 16, 2012 – Dec 19, 2012

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

PATCH 1/1 ARM: exynos: Fix warning due to missing 'inline' in stub

In file included from arch/arm/mach-exynos/clock-exynos5.c:29:0:
arch/arm/mach-exynos/common.h:28:12: warning: 'exynos_pm_late_initcall' defined but not used [-Wunused-function]

---

I've added this to the fixes branch on arm-soc. I've also noticed that every single non-EXYNOS5 board/config fails to build. Kukjin?

 arch/arm/mach-exynos/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-exynos/common.h +1 -1
index dac146d..04744f9 100644
@@ -25,7 +25,7 @@ void exynos_init_late(void);
 #ifdef CONFIG_PM_GENERIC_DOMAINS
 int exynos_pm_late_initcall(void);
 #else
-static int exynos_pm_late_initcall(void) { return 0; }
+static inline int exynos_pm_late_initcall(void) { return 0; }
 #endif
 
 #ifdef CONFIG_ARCH_EXYNOS4
Signature · 1 line
1.7.10.1.488.g05fbf7a
#1 lore raw

PATCH 1/1 ARM: exynos: Fix warning due to missing 'inline' in stub

Quoted 5 lines · Olof Johansson

In file included from arch/arm/mach-exynos/clock-exynos5.c:29:0:
arch/arm/mach-exynos/common.h:28:12: warning: 'exynos_pm_late_initcall' defined but not used [-Wunused-function]

Quoted 8 lines

---

I've added this to the fixes branch on arm-soc. I've also noticed that every single non-EXYNOS5 board/config fails to build. Kukjin?

I'm OK on this. Thanks for your fix.

- Kukjin

Quoted 19 lines
 arch/arm/mach-exynos/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach- renamed from arch/arm/mach-exynos/common.h +0 -0

exynos/common.h
index dac146d..04744f9 100644

arch/arm/mach-exynos/common.h +1 -2
@@ -25,7 +25,7 @@ void exynos_init_late(void);
 #ifdef CONFIG_PM_GENERIC_DOMAINS
 int exynos_pm_late_initcall(void);
 #else
-static int exynos_pm_late_initcall(void) { return 0; }
+static inline int exynos_pm_late_initcall(void) { return 0; }
 #endif
 
 #ifdef CONFIG_ARCH_EXYNOS4
--

1.7.10.1.488.g05fbf7a