]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: at91: pm: Mark at91_pm_secure_init as __init
authorFabio Estevam <festevam@denx.de>
Wed, 22 Jun 2022 11:48:10 +0000 (08:48 -0300)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 28 Jun 2022 09:55:32 +0000 (12:55 +0300)
at91_pm_secure_init() is used inside sama5d2_pm_init(), which has
the __init notation.

Pass the __init notation to at91_pm_secure_init() as well to fix the
following section mismatch warning:

WARNING: modpost: vmlinux.o(.text.unlikely+0x2138): Section mismatch in reference from the function at91_pm_secure_init() to the (unknown reference) .init.rodata:(unknown)

Fixes: 1848d65d0cf7 ("ARM: at91: pm: add support for sama5d2 secure suspend")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220622114810.1186330-1-festevam@gmail.com
arch/arm/mach-at91/pm.c

index 826fd56d2a179a0b27011f413c227a31d1d2be6c..df6d673e83d563ec3423aef9e8d84fb78067a6f9 100644 (file)
@@ -1079,7 +1079,7 @@ securam_fail:
        return ret;
 }
 
-static void at91_pm_secure_init(void)
+static void __init at91_pm_secure_init(void)
 {
        int suspend_mode;
        struct arm_smccc_res res;