cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 10 Nov 2016 15:19:05 +0000 (15:19 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 11 Nov 2016 00:32:53 +0000 (01:32 +0100)
Fixes the following sparse warning:

drivers/cpufreq/brcmstb-avs-cpufreq.c:982:18: warning:
 symbol 'brcm_avs_cpufreq_attr' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/brcmstb-avs-cpufreq.c

index b761d54bb08d3df34bfe4a3a33661d51b8ea079b..4fda623e55bb728e910ac0f0995cc7d8cb34f330 100644 (file)
@@ -979,7 +979,7 @@ cpufreq_freq_attr_ro(brcm_avs_pmap);
 cpufreq_freq_attr_ro(brcm_avs_voltage);
 cpufreq_freq_attr_ro(brcm_avs_frequency);
 
-struct freq_attr *brcm_avs_cpufreq_attr[] = {
+static struct freq_attr *brcm_avs_cpufreq_attr[] = {
        &cpufreq_freq_attr_scaling_available_freqs,
        &brcm_avs_pstate,
        &brcm_avs_mode,