Skip to content

Commit 8fce3dc

Browse files
arndbKAGA-KOKO
authored andcommitted
clocksource/integrator: Fix section mismatch warning
gcc-4.6 and older fail to inline integrator_clocksource_init, so they end up showing a harmless warning: WARNING: vmlinux.o(.text+0x4aa94c): Section mismatch in reference from the function integrator_clocksource_init() to the function .init.text:clocksource_mmio_init() The function integrator_clocksource_init() references the function __init clocksource_mmio_init(). This is often because integrator_clocksource_init lacks a __init annotation or the annotation of clocksource_mmio_init is wrong. Add the missing __init annotation that makes it build cleanly with all compilers. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Daniel Lezcano <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
1 parent 0666f56 commit 8fce3dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clocksource/timer-integrator-ap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ static u64 notrace integrator_read_sched_clock(void)
3636
return -readl(sched_clk_base + TIMER_VALUE);
3737
}
3838

39-
static int integrator_clocksource_init(unsigned long inrate,
40-
void __iomem *base)
39+
static int __init integrator_clocksource_init(unsigned long inrate,
40+
void __iomem *base)
4141
{
4242
u32 ctrl = TIMER_CTRL_ENABLE | TIMER_CTRL_PERIODIC;
4343
unsigned long rate = inrate;

0 commit comments

Comments
 (0)