Skip to contentSkip to conversation

arm: arch_timer: add missing inline in stub function

PATCH New Olof Johansson 2 participants 2 messages Feb 11, 2013 – Feb 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: arch_timer: add missing inline in stub function

Fixes:

In file included from arch/arm/include/asm/arch_timer.h:10:0,
from arch/arm/mach-shmobile/timer.c:23:
include/clocksource/arm_arch_timer.h:56:28: warning: 'arch_timer_get_timecounter' defined but not used [-Wunused-function]

---

Will, Mark, Marc,

I've applied this on next/virt already since it started spewing pretty heavily on a lot of defconfig builds. Just posting FYI.

 include/clocksource/arm_arch_timer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/clocksource/arm_arch_timer.h +1 -1
index b61f996..2603267 100644
@@ -53,7 +53,7 @@ static inline u64 arch_timer_read_counter(void)
 	return 0;
 }
 
-static struct timecounter *arch_timer_get_timecounter(void)
+static inline struct timecounter *arch_timer_get_timecounter(void)
 {
 	return NULL;
 }
Signature · 1 line
1.8.1.192.gc4361b8
#1 lore raw

PATCH 1/1 arm: arch_timer: add missing inline in stub function

Quoted 7 lines · Olof Johansson

Fixes:

In file included from arch/arm/include/asm/arch_timer.h:10:0,
from arch/arm/mach-shmobile/timer.c:23:
include/clocksource/arm_arch_timer.h:56:28: warning:
'arch_timer_get_timecounter' defined but not used [-Wunused-function]

Quoted 8 lines

---

Will, Mark, Marc,

I've applied this on next/virt already since it started spewing pretty heavily
on a lot of defconfig builds. Just posting FYI.

Ah, well spotted. Thanks Olof.

       M.
Signature · 1 line
Fast, cheap, reliable. Pick two.