Skip to contentSkip to conversation

ARM: at91: pm: Mark at91_pm_secure_init as __init

PATCH Applied Fabio Estevam 2 participants 2 messages Jun 22, 2022 – Jun 28, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: at91: pm: Mark at91_pm_secure_init as __init

From: Fabio Estevam <[email protected]>

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 f2f5cf78a333 ("ARM: at91: pm: add support for sama5d2 secure suspend")
---
 arch/arm/mach-at91/pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-at91/pm.c +1 -1
index b1a43d7bc56c..08eaaca2a078 100644
@@ -1079,7 +1079,7 @@ static int __init at91_pm_backup_init(void)
 	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;
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 7 lines · Fabio Estevam

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

From: Fabio Estevam <[email protected]>

at91_pm_secure_init() is used inside sama5d2_pm_init(), which has the __init notation.

Quoted 7 lines

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 f2f5cf78a333 ("ARM: at91: pm: add support for sama5d2 secure suspend")

Applied to at91-fixes. Thanks!

Quoted 21 lines
---
 arch/arm/mach-at91/pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-at91/pm.c +1 -2
index b1a43d7bc56c..08eaaca2a078 100644
@@ -1079,7 +1079,7 @@ static int __init at91_pm_backup_init(void)
        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;
--

2.25.1

Quoted 4 lines

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel