linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: mvebu: staticize of_cpu_clk_setup
@ 2013-11-07  8:59 Jisheng Zhang
  2013-11-07 11:47 ` Jason Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jisheng Zhang @ 2013-11-07  8:59 UTC (permalink / raw)
  To: mturquette, jason, gregory.clement
  Cc: linux-arm-kernel, linux-kernel, 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 <jszhang@marvell.com>
---
 drivers/clk/mvebu/clk-cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c
index 1466865..8ebf757 100644
--- a/drivers/clk/mvebu/clk-cpu.c
+++ b/drivers/clk/mvebu/clk-cpu.c
@@ -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);
-- 
1.8.4.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: mvebu: staticize of_cpu_clk_setup
  2013-11-07  8:59 [PATCH] clk: mvebu: staticize of_cpu_clk_setup Jisheng Zhang
@ 2013-11-07 11:47 ` Jason Cooper
  2013-11-07 17:17 ` Gregory CLEMENT
  2013-11-24  3:26 ` Jason Cooper
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Cooper @ 2013-11-07 11:47 UTC (permalink / raw)
  To: Jisheng Zhang; +Cc: mturquette, gregory.clement, linux-arm-kernel, linux-kernel

On Thu, Nov 07, 2013 at 04:59:33PM +0800, Jisheng Zhang wrote:
> 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 <jszhang@marvell.com>
> ---
>  drivers/clk/mvebu/clk-cpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Jason Cooper <jason@lakedaemon.net>

thx,

Jason.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: mvebu: staticize of_cpu_clk_setup
  2013-11-07  8:59 [PATCH] clk: mvebu: staticize of_cpu_clk_setup Jisheng Zhang
  2013-11-07 11:47 ` Jason Cooper
@ 2013-11-07 17:17 ` Gregory CLEMENT
  2013-11-24  3:26 ` Jason Cooper
  2 siblings, 0 replies; 4+ messages in thread
From: Gregory CLEMENT @ 2013-11-07 17:17 UTC (permalink / raw)
  To: Jisheng Zhang, mturquette, jason; +Cc: linux-kernel, linux-arm-kernel

On 07/11/2013 09:59, Jisheng Zhang wrote:
> 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 <jszhang@marvell.com>

Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>


Thanks,

Gregory

> ---
>  drivers/clk/mvebu/clk-cpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c
> index 1466865..8ebf757 100644
> --- a/drivers/clk/mvebu/clk-cpu.c
> +++ b/drivers/clk/mvebu/clk-cpu.c
> @@ -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);
> 


-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: mvebu: staticize of_cpu_clk_setup
  2013-11-07  8:59 [PATCH] clk: mvebu: staticize of_cpu_clk_setup Jisheng Zhang
  2013-11-07 11:47 ` Jason Cooper
  2013-11-07 17:17 ` Gregory CLEMENT
@ 2013-11-24  3:26 ` Jason Cooper
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Cooper @ 2013-11-24  3:26 UTC (permalink / raw)
  To: Jisheng Zhang
  Cc: mturquette, gregory.clement, linux-kernel, linux-arm-kernel,
	Sebastian Hesselbarth

On Thu, Nov 07, 2013 at 04:59:33PM +0800, Jisheng Zhang wrote:
> 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 <jszhang@marvell.com>
> ---
>  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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-24  3:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-07  8:59 [PATCH] clk: mvebu: staticize of_cpu_clk_setup Jisheng Zhang
2013-11-07 11:47 ` Jason Cooper
2013-11-07 17:17 ` Gregory CLEMENT
2013-11-24  3:26 ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).