* [PATCH] clk: socfpga: Fix section mismatch warning
@ 2014-03-13 21:08 dinguyen at altera.com
2014-03-19 6:43 ` Mike Turquette
0 siblings, 1 reply; 2+ messages in thread
From: dinguyen at altera.com @ 2014-03-13 21:08 UTC (permalink / raw)
To: linux-arm-kernel
From: Dinh Nguyen <dinguyen@altera.com>
WARNING: drivers/clk/socfpga/built-in.o(.data+0xc0): Section mismatch in
reference from the variable socfpga_child_clocks to the function
.init.text:socfpga_pll_init()
The variable socfpga_child_clocks references
the function __init socfpga_pll_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: drivers/clk/socfpga/built-in.o(.data+0x184): Section mismatch in
reference from the variable socfpga_child_clocks to the function
.init.text:socfpga_periph_init()
The variable socfpga_child_clocks references
the function __init socfpga_periph_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: drivers/clk/socfpga/built-in.o(.data+0x248): Section mismatch in
reference from the variable socfpga_child_clocks to the function
.init.text:socfpga_gate_init()
The variable socfpga_child_clocks references
the function __init socfpga_gate_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Reported-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
---
drivers/clk/socfpga/clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c
index 6217d5d..35a960a 100644
--- a/drivers/clk/socfpga/clk.c
+++ b/drivers/clk/socfpga/clk.c
@@ -28,7 +28,7 @@
void __iomem *clk_mgr_base_addr;
-static struct of_device_id socfpga_child_clocks[] = {
+static const struct of_device_id socfpga_child_clocks[] __initconst = {
{ .compatible = "altr,socfpga-pll-clock", socfpga_pll_init, },
{ .compatible = "altr,socfpga-perip-clk", socfpga_periph_init, },
{ .compatible = "altr,socfpga-gate-clk", socfpga_gate_init, },
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] clk: socfpga: Fix section mismatch warning
2014-03-13 21:08 [PATCH] clk: socfpga: Fix section mismatch warning dinguyen at altera.com
@ 2014-03-19 6:43 ` Mike Turquette
0 siblings, 0 replies; 2+ messages in thread
From: Mike Turquette @ 2014-03-19 6:43 UTC (permalink / raw)
To: linux-arm-kernel
Quoting dinguyen at altera.com (2014-03-13 14:08:01)
> From: Dinh Nguyen <dinguyen@altera.com>
>
> WARNING: drivers/clk/socfpga/built-in.o(.data+0xc0): Section mismatch in
> reference from the variable socfpga_child_clocks to the function
> .init.text:socfpga_pll_init()
> The variable socfpga_child_clocks references
> the function __init socfpga_pll_init()
> If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
>
> WARNING: drivers/clk/socfpga/built-in.o(.data+0x184): Section mismatch in
> reference from the variable socfpga_child_clocks to the function
> .init.text:socfpga_periph_init()
> The variable socfpga_child_clocks references
> the function __init socfpga_periph_init()
> If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
>
> WARNING: drivers/clk/socfpga/built-in.o(.data+0x248): Section mismatch in
> reference from the variable socfpga_child_clocks to the function
> .init.text:socfpga_gate_init()
> The variable socfpga_child_clocks references
> the function __init socfpga_gate_init()
> If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
>
> Reported-by: Mike Turquette <mturquette@linaro.org>
> Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Thanks! Taken into clk-next.
Regards,
Mike
> ---
> drivers/clk/socfpga/clk.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c
> index 6217d5d..35a960a 100644
> --- a/drivers/clk/socfpga/clk.c
> +++ b/drivers/clk/socfpga/clk.c
> @@ -28,7 +28,7 @@
>
> void __iomem *clk_mgr_base_addr;
>
> -static struct of_device_id socfpga_child_clocks[] = {
> +static const struct of_device_id socfpga_child_clocks[] __initconst = {
> { .compatible = "altr,socfpga-pll-clock", socfpga_pll_init, },
> { .compatible = "altr,socfpga-perip-clk", socfpga_periph_init, },
> { .compatible = "altr,socfpga-gate-clk", socfpga_gate_init, },
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-19 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-13 21:08 [PATCH] clk: socfpga: Fix section mismatch warning dinguyen at altera.com
2014-03-19 6:43 ` Mike Turquette
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.