Skip to contentSkip to conversation

cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static

PATCH New Wei Yongjun 4 participants 4 messages Nov 10, 2016 – Nov 14, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static

From: Wei Yongjun <[email protected]>

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?

---
 drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/brcmstb-avs-cpufreq.c +1 -1
index b761d54..4fda623 100644
@@ -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,
#1 lore raw

PATCH 1/1 cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static

Quoted 6 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

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?

Yes, thanks for the fix.

Quoted 19 lines
---
 drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/brcmstb-avs-cpufreq.c +1 -1
index b761d54..4fda623 100644
@@ -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,
#2 lore raw

PATCH 1/1 cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static

Quoted 11 lines · Markus Mayer
Quoted 6 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

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?

Yes, thanks for the fix.

Applied.

Thanks,
Rafael

maintainer
#3 lore raw

PATCH 1/1 cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static

In reply to Wei Yongjun
Quoted 17 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

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?

---
 drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/brcmstb-avs-cpufreq.c +0 -0
index b761d54..4fda623 100644

drivers/cpufreq/brcmstb-avs-cpufreq.c cpufreq_freq_attr_ro(brcm_avs_pmap); · line 985

Quoted 8 lines
drivers/cpufreq/brcmstb-avs-cpufreq.c +1 -1
@@ -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,
Signature · 1 line
viresh