pxa_timer: fix session missmatch warning
PATCH RESEND 1/1 pxa_timer: fix session missmatch warning
Fix the following warning:
WARNING: drivers/clocksource/built-in.o(.text.unlikely+0x70): Section mismatch in reference from the function pxa_timer_common_init() to the function .init.text:clocksource_mmio_init() The function pxa_timer_common_init() references
the function __init clocksource_mmio_init().
This is often because pxa_timer_common_init lacks a __init
annotation or the annotation of clocksource_mmio_init is wrong.
--- drivers/clocksource/pxa_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/pxa_timer.c +1 -1
@@ -163,7 +163,7 @@ static struct irqaction pxa_ost0_irq = { .dev_id = &ckevt_pxa_osmr0, }; -static void pxa_timer_common_init (int irq,unsigned long clock_tick_rate) +static void __init pxa_timer_common_init (int irq,unsigned long clock_tick_rate) {timer_writel (0 ,OIER );timer_writel (OSSR_M0 |OSSR_M1 |OSSR_M2 |OSSR_M3 ,OSSR );
Signature · 1 line
2.1.4
Quoted 9 lines · Dmitry Eremin-Solenikov
Fix the following warning:
WARNING: drivers/clocksource/built-in.o(.text.unlikely+0x70): Section mismatch in reference from the function
pxa_timer_common_init()to the function .init.text:clocksource_mmio_init() The functionpxa_timer_common_init()references
the function__initclocksource_mmio_init().
This is often becausepxa_timer_common_initlacks a__init
annotation or the annotation ofclocksource_mmio_initis wrong.Signed-off-by Dmitry Eremin-Solenikov <[email protected]>
On a side note, I never get this warning in my builds, either on linux-next or linus tree, probably because pxa_timer_common_init() is always inlined in my builds.
Cheers.
--
Robert
Daniel Lezcano
AppliedQuoted 9 lines · Dmitry Eremin-Solenikov
Fix the following warning:
WARNING: drivers/clocksource/built-in.o(.text.unlikely+0x70): Section mismatch in reference from the function
pxa_timer_common_init()to the function .init.text:clocksource_mmio_init() The functionpxa_timer_common_init()references
the function__initclocksource_mmio_init().
This is often becausepxa_timer_common_initlacks a__init
annotation or the annotation ofclocksource_mmio_initis wrong.Signed-off-by Dmitry Eremin-Solenikov <[email protected]
Applied to my tree.
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