clocksource: ftm: select CLKSRC_MMIO
PATCH 1/1 clocksource: ftm: select CLKSRC_MMIO
The ftm clocksource driver does not build if CLKSRC_MMIO is disabled:
drivers/built-in.o: In function `ftm_timer_init':
(init.text+0xd324): undefined reference to clocksource_mmio_init' (init.text+0xd484): undefined reference to clocksource_mmio_readl_up'
This adds the same 'select' statement that the other similar drivers use. Prior to allowing this driver to be enabled with COMPILE_TEST, it was apparently unused. I'm not entirely sure who is using this hardware, but it certainly can't hurt to ensure it builds cleanly.
drivers/clocksource/Kconfig +1 -0
@@ -256,6 +256,7 @@ config CLKSRC_SAMSUNG_PWM config FSL_FTM_TIMER bool "Freescale FlexTimer Module driver" if COMPILE_TEST depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO help Support for Freescale FlexTimer Module (FTM) timer.
Quoted 10 lines · Arnd Bergmann
The ftm clocksource driver does not build if
CLKSRC_MMIOis disabled:
drivers/built-in.o: In function `ftm_timer_init':
(init.text+0xd324): undefined reference toclocksource_mmio_init' (init.text+0xd484): undefined reference toclocksource_mmio_readl_up'This adds the same 'select' statement that the other similar drivers use. Prior to allowing this driver to be enabled with
COMPILE_TEST, it was apparently unused. I'm not entirely sure who is using this hardware, but it certainly can't hurt to ensure it builds cleanly.
Hi Arnd,
Thanks for the fix. It is already in Thomas's tree [1].
It has been merged in tip/timers/urgent. You will have to wait a bit this branch to be merged with tip/timers/core.
-- 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
Quoted 7 lines · On Thursday 14 January 2016 10:25:40 Daniel Lezcano wrote:
Quoted 6 lines · Arnd Bergmann
The ftm clocksource driver does not build if
CLKSRC_MMIOis disabled:
drivers/built-in.o: In function `ftm_timer_init':
(init.text+0xd324): undefined reference toclocksource_mmio_init' (init.text+0xd484): undefined reference toclocksource_mmio_readl_up'
Quoted 8 lines
Quoted 4 lines
This adds the same 'select' statement that the other similar drivers use. Prior to allowing this driver to be enabled with
COMPILE_TEST, it was apparently unused. I'm not entirely sure who is using this hardware, but it certainly can't hurt to ensure it builds cleanly.Hi Arnd,
Thanks for the fix. It is already in Thomas's tree [1].
Ok, thanks for fixing it already! I'll mark this one as superceded in my randconfig testing git tree then and will drop it as soon as yours is merged.
Arnd