public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource: pxa: fix section mismatch
@ 2015-01-31 22:40 Robert Jarzmik
  2015-02-23 19:40 ` Robert Jarzmik
  2015-02-24  7:15 ` Daniel Lezcano
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Jarzmik @ 2015-01-31 22:40 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner; +Cc: linux-kernel, Robert Jarzmik

As pxa_timer_common_init() is only called in init context, mark it as
such, and quiesce the compiler warnings :
WARNING: vmlinux.o(.text.unlikely+0x45d4): Section mismatch in reference
from the function pxa_timer_common_init() to the function
.init.text:sched_clock_register()

WARNING: vmlinux.o(.text.unlikely+0x4610): Section mismatch in reference
from the function pxa_timer_common_init() to the function
.init.text:clocksource_mmio_init()

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
 drivers/clocksource/pxa_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/pxa_timer.c b/drivers/clocksource/pxa_timer.c
index 941f3f3..d9438af 100644
--- a/drivers/clocksource/pxa_timer.c
+++ b/drivers/clocksource/pxa_timer.c
@@ -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);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] clocksource: pxa: fix section mismatch
  2015-01-31 22:40 [PATCH] clocksource: pxa: fix section mismatch Robert Jarzmik
@ 2015-02-23 19:40 ` Robert Jarzmik
  2015-02-23 20:36   ` Daniel Lezcano
  2015-02-24  7:15 ` Daniel Lezcano
  1 sibling, 1 reply; 5+ messages in thread
From: Robert Jarzmik @ 2015-02-23 19:40 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: Thomas Gleixner, linux-kernel

Robert Jarzmik <robert.jarzmik@free.fr> writes:

> As pxa_timer_common_init() is only called in init context, mark it as
> such, and quiesce the compiler warnings :
> WARNING: vmlinux.o(.text.unlikely+0x45d4): Section mismatch in reference
> from the function pxa_timer_common_init() to the function
> .init.text:sched_clock_register()
>
> WARNING: vmlinux.o(.text.unlikely+0x4610): Section mismatch in reference
> from the function pxa_timer_common_init() to the function
> .init.text:clocksource_mmio_init()
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Daniel, could pick that up ?

Cheers.

--
Robert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] clocksource: pxa: fix section mismatch
  2015-02-23 19:40 ` Robert Jarzmik
@ 2015-02-23 20:36   ` Daniel Lezcano
  2015-02-23 21:26     ` Robert Jarzmik
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lezcano @ 2015-02-23 20:36 UTC (permalink / raw)
  To: Robert Jarzmik; +Cc: Thomas Gleixner, linux-kernel

On 02/23/2015 08:40 PM, Robert Jarzmik wrote:
> Robert Jarzmik <robert.jarzmik@free.fr> writes:
>
>> As pxa_timer_common_init() is only called in init context, mark it as
>> such, and quiesce the compiler warnings :
>> WARNING: vmlinux.o(.text.unlikely+0x45d4): Section mismatch in reference
>> from the function pxa_timer_common_init() to the function
>> .init.text:sched_clock_register()
>>
>> WARNING: vmlinux.o(.text.unlikely+0x4610): Section mismatch in reference
>> from the function pxa_timer_common_init() to the function
>> .init.text:clocksource_mmio_init()
>>
>> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> Daniel, could pick that up ?

Yes.

-- 
  <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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] clocksource: pxa: fix section mismatch
  2015-02-23 20:36   ` Daniel Lezcano
@ 2015-02-23 21:26     ` Robert Jarzmik
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Jarzmik @ 2015-02-23 21:26 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: Thomas Gleixner, linux-kernel

Daniel Lezcano <daniel.lezcano@linaro.org> writes:

> On 02/23/2015 08:40 PM, Robert Jarzmik wrote:
>
> Yes.
Thanks.

Cheers.

-- 
Robert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] clocksource: pxa: fix section mismatch
  2015-01-31 22:40 [PATCH] clocksource: pxa: fix section mismatch Robert Jarzmik
  2015-02-23 19:40 ` Robert Jarzmik
@ 2015-02-24  7:15 ` Daniel Lezcano
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Lezcano @ 2015-02-24  7:15 UTC (permalink / raw)
  To: Robert Jarzmik, Thomas Gleixner; +Cc: linux-kernel

On 01/31/2015 11:40 PM, Robert Jarzmik wrote:
> As pxa_timer_common_init() is only called in init context, mark it as
> such, and quiesce the compiler warnings :
> WARNING: vmlinux.o(.text.unlikely+0x45d4): Section mismatch in reference
> from the function pxa_timer_common_init() to the function
> .init.text:sched_clock_register()
>
> WARNING: vmlinux.o(.text.unlikely+0x4610): Section mismatch in reference
> from the function pxa_timer_common_init() to the function
> .init.text:clocksource_mmio_init()
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> ---

Applied to my tree as a fix for 3.20.


-- 
  <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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-24  7:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-31 22:40 [PATCH] clocksource: pxa: fix section mismatch Robert Jarzmik
2015-02-23 19:40 ` Robert Jarzmik
2015-02-23 20:36   ` Daniel Lezcano
2015-02-23 21:26     ` Robert Jarzmik
2015-02-24  7:15 ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox