Skip to content

Commit 27e23d8

Browse files
arndbolofj
authored andcommitted
ARM: omap2: remove incorrect __init annotation
omap3xxx_prm_enable_io_wakeup() is marked __init, but its caller is not, so we get a warning with clang-8: WARNING: vmlinux.o(.text+0x343c8): Section mismatch in reference from the function omap3xxx_prm_late_init() to the function .init.text:omap3xxx_prm_enable_io_wakeup() The function omap3xxx_prm_late_init() references the function __init omap3xxx_prm_enable_io_wakeup(). This is often because omap3xxx_prm_late_init lacks a __init annotation or the annotation of omap3xxx_prm_enable_io_wakeup is wrong. When building with gcc, omap3xxx_prm_enable_io_wakeup() is always inlined, so we never noticed in the past. Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Acked-by: Tony Lindgren <[email protected]> Reviewed-by: Andrew Murray <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent ef51ea4 commit 27e23d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-omap2/prm3xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static void omap3_prm_reconfigure_io_chain(void)
433433
* registers, and omap3xxx_prm_reconfigure_io_chain() must be called.
434434
* No return value.
435435
*/
436-
static void __init omap3xxx_prm_enable_io_wakeup(void)
436+
static void omap3xxx_prm_enable_io_wakeup(void)
437437
{
438438
if (prm_features & PRM_HAS_IO_WAKEUP)
439439
omap2_prm_set_mod_reg_bits(OMAP3430_EN_IO_MASK, WKUP_MOD,

0 commit comments

Comments
 (0)