From deadc1cded31848cd2375c1df2cba4e6b52a8afb Mon Sep 17 00:00:00 2001 From: Jacky Bai <ping.bai@nxp.com> Date: Wed, 1 Sep 2021 18:26:34 +0800 Subject: [PATCH] LF-4521-02 soc: imx: Fix section mismatch build warning due to __init Fix below section mismatch build warning: WARNING: modpost: vmlinux.o(.text+0x6b20b8): Section mismatch in reference from the function imx8_soc_info() to the function .init.text:imx8mq_noc_init() The function imx8_soc_info() references the function __init imx8mq_noc_init(). This is often because imx8_soc_info lacks a __init annotation or the annotation of imx8mq_noc_init is wrong. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Acked-by: Jason Liu <jason.hui.liu@nxp.com> --- drivers/soc/imx/soc-imx8m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/imx/soc-imx8m.c b/drivers/soc/imx/soc-imx8m.c index 4577a7ba9832b2..0ce3729b390f55 100644 --- a/drivers/soc/imx/soc-imx8m.c +++ b/drivers/soc/imx/soc-imx8m.c @@ -204,7 +204,7 @@ static __maybe_unused const struct of_device_id imx8_soc_match[] = { kasprintf(GFP_KERNEL, "%d.%d", (soc_rev >> 4) & 0xf, soc_rev & 0xf) : \ "unknown" -static void __init imx8mq_noc_init(void) +static void imx8mq_noc_init(void) { struct arm_smccc_res res; -- GitLab