Browse Source

cpufreq: sfi: make freq_table static

pointer freq_table can be made static as it does not need to be in
global scope.

Cleans up sparse warning:
"symbol 'freq_table' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Colin Ian King 8 years ago
parent
commit
0370f0f975
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/cpufreq/sfi-cpufreq.c

+ 1 - 1
drivers/cpufreq/sfi-cpufreq.c

@@ -24,7 +24,7 @@
 
 
 #include <asm/msr.h>
 #include <asm/msr.h>
 
 
-struct cpufreq_frequency_table *freq_table;
+static struct cpufreq_frequency_table *freq_table;
 static struct sfi_freq_table_entry *sfi_cpufreq_array;
 static struct sfi_freq_table_entry *sfi_cpufreq_array;
 static int num_freq_table_entries;
 static int num_freq_table_entries;