cpufreq: Fix sparse warning by making local function static
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 25 Oct 2012 22:51:32 +0000 (00:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:33:08 +0000 (00:33 +0100)
cpufreq_disabled() is a local function, so should be marked static.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c

index f552d5fe0f8fa2c68daa9c78ef6780baf3834a32..261ef654a35254f3e9ef0ecf3a15ba45c6a868c0 100644 (file)
@@ -129,7 +129,7 @@ static int __init init_cpufreq_transition_notifier_list(void)
 pure_initcall(init_cpufreq_transition_notifier_list);
 
 static int off __read_mostly;
-int cpufreq_disabled(void)
+static int cpufreq_disabled(void)
 {
        return off;
 }