clk: mvebu: staticize of_cpu_clk_setup
Subsystems (2)
PATCH 1/1 clk: mvebu: staticize of_cpu_clk_setup
This symbol is used only in this file. The patch fix the following sparse warning:
warning: symbol 'of_cpu_clk_setup' was not declared. Should it be static?
--- drivers/clk/mvebu/clk-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/mvebu/clk-cpu.c +1 -1
@@ -101,7 +101,7 @@ static const struct clk_ops cpu_ops = { .set_rate = clk_cpu_set_rate, }; -void __init of_cpu_clk_setup (struct device_node *node) +static void __init of_cpu_clk_setup (struct device_node *node) {struct cpu_clk *cpuclk;void __iomem *clock_complex_base =of_iomap (node,0 );
Signature · 1 line
1.8.4.2
Quoted 8 lines · Jisheng Zhang
This symbol is used only in this file. The patch fix the following sparse warning:
warning: symbol 'of_cpu_clk_setup' was not declared. Should it be static?Signed-off-by Jisheng Zhang <[email protected]>--- drivers/clk/mvebu/clk-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
thx,
Jason.
Quoted 5 lines · Jisheng Zhang
This symbol is used only in this file. The patch fix the following sparse warning:
warning: symbol 'of_cpu_clk_setup' was not declared. Should it be static?Signed-off-by Jisheng Zhang <[email protected]>
Thanks,
Gregory
Quoted 18 lines
--- drivers/clk/mvebu/clk-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/mvebu/clk-cpu.c +1
-1@@ -101,7 +101,7 @@ static const struct clk_ops cpu_ops = { .set_rate = clk_cpu_set_rate, }; -void __init of_cpu_clk_setup (struct device_node *node) +static void __init of_cpu_clk_setup (struct device_node *node) {struct cpu_clk *cpuclk;void __iomem *clock_complex_base =of_iomap (node,0 );
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Jason Cooper
AppliedQuoted 8 lines · Jisheng Zhang
This symbol is used only in this file. The patch fix the following sparse warning:
warning: symbol 'of_cpu_clk_setup' was not declared. Should it be static?Signed-off-by Jisheng Zhang <[email protected]>--- drivers/clk/mvebu/clk-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to mvebu/clk with Gregory and my Acks destined for the clock tree.
thx,
Jason.