]> git.itanic.dy.fi Git - linux-stable/commitdiff
power: reset: at91: Drop '__init' from at91_wakeup_status()
authorNathan Chancellor <nathan@kernel.org>
Mon, 20 Nov 2023 22:35:32 +0000 (15:35 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 24 Dec 2023 22:43:10 +0000 (23:43 +0100)
When building with clang, there are two section mismatch warnings:

  WARNING: modpost: vmlinux: section mismatch in reference: at91_poweroff_probe+0x7c (section: .text) -> at91_wakeup_status (section: .init.text)
  WARNING: modpost: vmlinux: section mismatch in reference: at91_shdwc_probe+0xcc (section: .text) -> at91_wakeup_status (section: .init.text)

Drop '__init' from at91_wakeup_status() to clear up the mismatch.

Fixes: dde74a5de817 ("power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe()")
Fixes: 099806de68b7 ("power: reset: at91-poweroff: Stop using module_platform_driver_probe()")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-poweroff.c
drivers/power/reset/at91-sama5d2_shdwc.c

index 126e774e210c09fbb02b645fa3945436a7a69fd5..93eece0278652207b5fdfd597268f7ef1beaf867 100644 (file)
@@ -57,7 +57,7 @@ static struct shdwc {
        void __iomem *mpddrc_base;
 } at91_shdwc;
 
-static void __init at91_wakeup_status(struct platform_device *pdev)
+static void at91_wakeup_status(struct platform_device *pdev)
 {
        const char *reason;
        u32 reg = readl(at91_shdwc.shdwc_base + AT91_SHDW_SR);
index af95c7b39cb3c5fac653c0f4b97788f30c730b66..959ce0dbe91d112d006176bd36165cf208e4f810 100644 (file)
@@ -107,7 +107,7 @@ static const unsigned long long sdwc_dbc_period[] = {
        0, 3, 32, 512, 4096, 32768,
 };
 
-static void __init at91_wakeup_status(struct platform_device *pdev)
+static void at91_wakeup_status(struct platform_device *pdev)
 {
        struct shdwc *shdw = platform_get_drvdata(pdev);
        const struct reg_config *rcfg = shdw->rcfg;