cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static
Subsystems (3)
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
@@ -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,
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
Signed-off-by Wei Yongjun <[email protected]>--- drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)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,
Rafael J. Wysocki
AppliedPATCH 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.
Acked-by Markus Mayer <[email protected]>
Applied.
Thanks,
Rafael
Viresh Kumar
maintainerPATCH 1/1 cpufreq: brcmstb-avs-cpufreq: make symbol brcm_avs_cpufreq_attr static
In reply to Wei YongjunQuoted 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?Signed-off-by Wei Yongjun <[email protected]>--- drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/brcmstb-avs-cpufreq.c +0
-0
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