mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cpufreq: SPEAr: Fix sparse warning for cpufreq driver
@ 2013-01-12  5:12 Viresh Kumar
  2013-01-12 13:27 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Viresh Kumar @ 2013-01-12  5:12 UTC (permalink / raw)
  To: rjw; +Cc: cpufreq, linux-pm, linux-kernel, Viresh Kumar

This patch fixes following sparse warning:

drivers/cpufreq/spear-cpufreq.c:33:5: warning: symbol 'spear_cpufreq_verify' was
not declared. Should it be static?

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/cpufreq/spear-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c
index 4575cfe..8ff26af 100644
--- a/drivers/cpufreq/spear-cpufreq.c
+++ b/drivers/cpufreq/spear-cpufreq.c
@@ -30,7 +30,7 @@ static struct {
 	u32 cnt;
 } spear_cpufreq;
 
-int spear_cpufreq_verify(struct cpufreq_policy *policy)
+static int spear_cpufreq_verify(struct cpufreq_policy *policy)
 {
 	return cpufreq_frequency_table_verify(policy, spear_cpufreq.freq_tbl);
 }
-- 
1.7.12.rc2.18.g61b472e


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

* Re: [PATCH] cpufreq: SPEAr: Fix sparse warning for cpufreq driver
  2013-01-12  5:12 [PATCH] cpufreq: SPEAr: Fix sparse warning for cpufreq driver Viresh Kumar
@ 2013-01-12 13:27 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2013-01-12 13:27 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: cpufreq, linux-pm, linux-kernel

On Saturday, January 12, 2013 10:42:09 AM Viresh Kumar wrote:
> This patch fixes following sparse warning:
> 
> drivers/cpufreq/spear-cpufreq.c:33:5: warning: symbol 'spear_cpufreq_verify' was
> not declared. Should it be static?

Applied to the linux-next branch of the linux-pm.git tree as v3.9 material.

Thanks,
Rafael


> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>  drivers/cpufreq/spear-cpufreq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c
> index 4575cfe..8ff26af 100644
> --- a/drivers/cpufreq/spear-cpufreq.c
> +++ b/drivers/cpufreq/spear-cpufreq.c
> @@ -30,7 +30,7 @@ static struct {
>  	u32 cnt;
>  } spear_cpufreq;
>  
> -int spear_cpufreq_verify(struct cpufreq_policy *policy)
> +static int spear_cpufreq_verify(struct cpufreq_policy *policy)
>  {
>  	return cpufreq_frequency_table_verify(policy, spear_cpufreq.freq_tbl);
>  }
> 
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

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

end of thread, other threads:[~2013-01-12 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-12  5:12 [PATCH] cpufreq: SPEAr: Fix sparse warning for cpufreq driver Viresh Kumar
2013-01-12 13:27 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®