cpufreq: unicore2: Staticize local symbol
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?
Signed-off-by Jingoo Han <[email protected]>
--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/unicore2-cpufreq.c +1 -1
@@ -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
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?Signed-off-by Jingoo Han <[email protected]>--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by Viresh Kumar <[email protected]>
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?Signed-off-by Jingoo Han <[email protected]>--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Acked-by Viresh Kumar <[email protected]>
Queued up for 3.12.
Thanks,
Rafael