diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-15 05:55:59 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-06-23 19:43:21 -0400 |
commit | 0370f0f975e5561c658aa86e2c372079e6a425eb (patch) | |
tree | aa338d7ce582be6b85802212893c4bd63e520560 | |
parent | e773f5c7e8c6279b2560ae1ca2a1d37cc12fe7c3 (diff) |
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>
-rw-r--r-- | drivers/cpufreq/sfi-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/sfi-cpufreq.c b/drivers/cpufreq/sfi-cpufreq.c index 992ce6f9abec..3779742f86e3 100644 --- a/drivers/cpufreq/sfi-cpufreq.c +++ b/drivers/cpufreq/sfi-cpufreq.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include <asm/msr.h> | 25 | #include <asm/msr.h> |
26 | 26 | ||
27 | struct cpufreq_frequency_table *freq_table; | 27 | static struct cpufreq_frequency_table *freq_table; |
28 | static struct sfi_freq_table_entry *sfi_cpufreq_array; | 28 | static struct sfi_freq_table_entry *sfi_cpufreq_array; |
29 | static int num_freq_table_entries; | 29 | static int num_freq_table_entries; |
30 | 30 | ||