• Russell King's avatar
    ARM: fix section mismatch warnings in Versatile Express · cdaf9a2f
    Russell King authored
    WARNING: vmlinux.o(.text+0xbf30): Section mismatch in reference from the function v2m_timer_init() to the function .init.text:sp804_clocksource_init()
    The function v2m_timer_init() references
    the function __init sp804_clocksource_init().
    This is often because v2m_timer_init lacks a __init
    annotation or the annotation of sp804_clocksource_init is wrong.
    
    WARNING: vmlinux.o(.text+0xbf3c): Section mismatch in reference from the function v2m_timer_init() to the function .init.text:sp804_clockevents_init()
    The function v2m_timer_init() references
    the function __init sp804_clockevents_init().
    This is often because v2m_timer_init lacks a __init
    annotation or the annotation of sp804_clockevents_init is wrong.
    
    WARNING: vmlinux.o(.text+0xc524): Section mismatch in reference from the function ct_ca9x4_init() to the function .init.text:l2x0_init()
    The function ct_ca9x4_init() references
    the function __init l2x0_init().
    This is often because ct_ca9x4_init lacks a __init
    annotation or the annotation of l2x0_init is wrong.
    
    WARNING: vmlinux.o(.text+0xc530): Section mismatch in reference from the function ct_ca9x4_init() to the function .init.text:clkdev_add_table()
    The function ct_ca9x4_init() references
    the function __init clkdev_add_table().
    This is often because ct_ca9x4_init lacks a __init
    annotation or the annotation of clkdev_add_table is wrong.
    
    WARNING: vmlinux.o(.text+0xc578): Section mismatch in reference from the function ct_ca9x4_init() to the (unknown reference) .init.data:(unknown)
    The function ct_ca9x4_init() references
    the (unknown reference) __initdata (unknown).
    This is often because ct_ca9x4_init lacks a __initdata
    annotation or the annotation of (unknown) is wrong.
    
    Fix these by making ct_ca9x4_init() and v2m_timer_init() both __init.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    cdaf9a2f
v2m.c 7.91 KB