Skip to content
Snippets Groups Projects
Commit b786cdd5 authored by Jacky Bai's avatar Jacky Bai Committed by Jason Liu
Browse files

LF-4521-01 clk: imx: Fix section mismatch build warning due to __init


Fix below section mismatch build warning in imx8mm/mn/mq clock driver:

WARNING: modpost: vmlinux.o(.text+0x667618): Section mismatch in reference
from the function imx8mm_clocks_probe() to the function .init.text:imx_clk_init_on.isra.0()
The function imx8mm_clocks_probe() references
the function __init imx_clk_init_on.isra.0().
This is often because imx8mm_clocks_probe lacks a __init
annotation or the annotation of imx_clk_init_on.isra.0 is wrong.

WARNING: modpost: vmlinux.o(.text+0x66a034): Section mismatch in reference
from the function imx8mn_clocks_probe() to the function .init.text:imx_clk_init_on.isra.0()
The function imx8mn_clocks_probe() references
the function __init imx_clk_init_on.isra.0().
This is often because imx8mn_clocks_probe lacks a __init
annotation or the annotation of imx_clk_init_on.isra.0 is wrong.

WARNING: modpost: vmlinux.o(.text+0x6713f8): Section mismatch in reference
from the function imx8mq_clocks_probe() to the function .init.text:imx_clk_init_on.isra.0()
The function imx8mq_clocks_probe() references
the function __init imx_clk_init_on.isra.0().
This is often because imx8mq_clocks_probe lacks a __init
annotation or the annotation of imx_clk_init_on.isra.0 is wrong.

Signed-off-by: default avatarJacky Bai <ping.bai@nxp.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Acked-by: default avatarJason Liu <jason.hui.liu@nxp.com>
parent cf1322f3
No related branches found
No related tags found
No related merge requests found
...@@ -294,7 +294,7 @@ static const char *imx8mm_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll1_ ...@@ -294,7 +294,7 @@ static const char *imx8mm_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll1_
static struct clk_hw_onecell_data *clk_hw_data; static struct clk_hw_onecell_data *clk_hw_data;
static struct clk_hw **hws; static struct clk_hw **hws;
static int __init imx_clk_init_on(struct device_node *np, static int imx_clk_init_on(struct device_node *np,
struct clk_hw * const clks[]) struct clk_hw * const clks[])
{ {
u32 *array; u32 *array;
......
...@@ -286,7 +286,7 @@ static const char * const imx8mn_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sy ...@@ -286,7 +286,7 @@ static const char * const imx8mn_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sy
static struct clk_hw_onecell_data *clk_hw_data; static struct clk_hw_onecell_data *clk_hw_data;
static struct clk_hw **hws; static struct clk_hw **hws;
static int __init imx_clk_init_on(struct device_node *np, static int imx_clk_init_on(struct device_node *np,
struct clk_hw * const clks[]) struct clk_hw * const clks[])
{ {
u32 *array; u32 *array;
......
...@@ -276,7 +276,7 @@ static const char * const imx8mq_clko2_sels[] = {"osc_25m", "sys2_pll_200m", "sy ...@@ -276,7 +276,7 @@ static const char * const imx8mq_clko2_sels[] = {"osc_25m", "sys2_pll_200m", "sy
static struct clk_hw_onecell_data *clk_hw_data; static struct clk_hw_onecell_data *clk_hw_data;
static struct clk_hw **hws; static struct clk_hw **hws;
static int __init imx_clk_init_on(struct device_node *np, static int imx_clk_init_on(struct device_node *np,
struct clk_hw * const clks[]) struct clk_hw * const clks[])
{ {
u32 *array; u32 *array;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment