Skip to contentSkip to conversation

clocksource/arm_arch_timer: remove unused return type

PATCH In review Andrew Murray 3 participants 4 messages Jun 17, 2019

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

PATCH 1/1 clocksource/arm_arch_timer: remove unused return type

The function 'arch_timer_set_evtstrm_feature' has no return statement despite its prototype - let's change the function prototype to return void. This matches the equivalent arm64 implementation.

Fixes 11e34eca5d0a ("clocksource/arm_arch_timer: Extract elf_hwcap use to arch-helper")
---
 arch/arm/include/asm/arch_timer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch_timer.h +1 -1
index ae533caec1e9..99175812d903 100644
@@ -125,7 +125,7 @@ static inline void arch_timer_set_cntkctl(u32 cntkctl)
 	isb();
 }
 
-static inline bool arch_timer_set_evtstrm_feature(void)
+static inline void arch_timer_set_evtstrm_feature(void)
 {
 	elf_hwcap |= HWCAP_EVTSTRM;
 }
Signature · 1 line
2.21.0
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Andrew Murray

The function 'arch_timer_set_evtstrm_feature' has no return statement despite its prototype - let's change the function prototype to return void. This matches the equivalent arm64 implementation.

Fixes 11e34eca5d0a ("clocksource/arm_arch_timer: Extract elf_hwcap use to arch-helper")

nit: tags start with a capital letter.

Quoted 12 lines
---
 arch/arm/include/asm/arch_timer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch_timer.h +0 -0
index ae533caec1e9..99175812d903 100644

arch/arm/include/asm/arch_timer.h static inline void arch_timer_set_cntkctl(u32 cntkctl) · line 131

Quoted 8 lines
arch/arm/include/asm/arch_timer.h +1 -1
@@ -125,7 +125,7 @@ static inline void arch_timer_set_cntkctl(u32 cntkctl)
 	isb();
 }
 
-static inline bool arch_timer_set_evtstrm_feature(void)
+static inline void arch_timer_set_evtstrm_feature(void)
 {
 	elf_hwcap |= HWCAP_EVTSTRM;
 }
	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
#2 lore raw
Quoted 8 lines · Marc Zyngier
Quoted 5 lines · Andrew Murray

The function 'arch_timer_set_evtstrm_feature' has no return statement despite its prototype - let's change the function prototype to return void. This matches the equivalent arm64 implementation.

Fixes 11e34eca5d0a ("clocksource/arm_arch_timer: Extract elf_hwcap use to arch-helper")

nit: tags start with a capital letter.

Thanks - I'll remember next time.

Andrew Murray

Quoted 27 lines
Quoted 13 lines
---
 arch/arm/include/asm/arch_timer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch_timer.h +0 -0
index ae533caec1e9..99175812d903 100644

arch/arm/include/asm/arch_timer.h static inline void arch_timer_set_cntkctl(u32 cntkctl) · line 131

Quoted 8 lines
arch/arm/include/asm/arch_timer.h +1 -1
@@ -125,7 +125,7 @@ static inline void arch_timer_set_cntkctl(u32 cntkctl)
 	isb();
 }
 
-static inline bool arch_timer_set_evtstrm_feature(void)
+static inline void arch_timer_set_evtstrm_feature(void)
 {
 	elf_hwcap |= HWCAP_EVTSTRM;
 }
	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
#3 lore raw
In reply to Andrew Murray
Quoted 8 lines · Andrew Murray

The function 'arch_timer_set_evtstrm_feature' has no return statement despite its prototype - let's change the function prototype to return void. This matches the equivalent arm64 implementation.

Fixes 11e34eca5d0a ("clocksource/arm_arch_timer: Extract elf_hwcap use to arch-helper")

---

I can rebase my branch. I'll fold this patch with 11e34eca5d0a

Thanks
-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog