Skip to contentSkip to conversation

cpufreq: unicore2: Staticize local symbol

PATCH In review Jingoo Han 3 participants 3 messages Aug 9, 2013 – Aug 13, 2013 CPU frequency scaling framework

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 cpufreq: unicore2: Staticize local symbol

This local symbol is used only in this file.
Fix the following sparse warnings:

drivers/cpufreq/unicore2-cpufreq.c:27:5: warning: symbol 'ucv2_verify_speed' was not declared. Should it be static?

---
 drivers/cpufreq/unicore2-cpufreq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/unicore2-cpufreq.c +1 -1
index 12fc904..b225f04 100644
@@ -24,7 +24,7 @@ static struct cpufreq_driver ucv2_driver;
 /* make sure that only the "userspace" governor is run
  * -- anything else wouldn't make sense on this platform, anyway.
  */
-int ucv2_verify_speed(struct cpufreq_policy *policy)
+static int ucv2_verify_speed(struct cpufreq_policy *policy)
 {
 	if (policy->cpu)
 		return -EINVAL;
Signature · 1 line
1.7.10.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jingoo Han

This local symbol is used only in this file.
Fix the following sparse warnings:

drivers/cpufreq/unicore2-cpufreq.c:27:5: warning: symbol 'ucv2_verify_speed' was not declared. Should it be static?

---
 drivers/cpufreq/unicore2-cpufreq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw
Quoted 4 lines · Viresh Kumar
Quoted 3 lines · Jingoo Han

This local symbol is used only in this file.
Fix the following sparse warnings:

Quoted 8 lines
Quoted 6 lines

drivers/cpufreq/unicore2-cpufreq.c:27:5: warning: symbol 'ucv2_verify_speed' was not declared. Should it be static?

---
 drivers/cpufreq/unicore2-cpufreq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Queued up for 3.12.

Thanks,
Rafael