Skip to contentSkip to conversation

clk: mvebu: staticize of_cpu_clk_setup

PATCH Applied Jisheng Zhang 3 participants 4 messages Nov 7, 2013 – Nov 24, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 1466865..8ebf757 100644
@@ -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
Acked-by on v1 1/1
#2 lore raw
In reply to Jisheng Zhang
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?

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
index 1466865..8ebf757 100644
@@ -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
Applied
#3 lore raw
In reply to Jisheng Zhang
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?

---
 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.