You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
In krait_cpufreq_probe, both freq and max_cpu_freq are never initialized, so the max_cpu_freq will have a random value at the end. Fix this by properly initializing max_cpu_freq to 0 and storing the clk frequency in freq as well, to make it similar to how it's calculated in krait_set_target. Fixes the following warnings: In file included from include/linux/clk.h:16:0, from drivers/cpufreq/cpufreq-krait.c:13: drivers/cpufreq/cpufreq-krait.c: In function 'krait_cpufreq_probe': include/linux/kernel.h:714:24: warning: 'freq' may be used uninitialized in this function [-Wmaybe-uninitialized] _max1 > _max2 ? _max1 : _max2; }) ^ drivers/cpufreq/cpufreq-krait.c:217:25: note: 'freq' was declared here unsigned long freq_Hz, freq, max_cpu_freq; ^ In file included from include/linux/clk.h:16:0, from drivers/cpufreq/cpufreq-krait.c:13: include/linux/kernel.h:714:24: warning: 'max_cpu_freq' may be used uninitialized in this function [-Wmaybe-uninitialized] _max1 > _max2 ? _max1 : _max2; }) ^ drivers/cpufreq/cpufreq-krait.c:217:31: note: 'max_cpu_freq' was declared here unsigned long freq_Hz, freq, max_cpu_freq; Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46839 |
9 years ago | |
---|---|---|
.. | ||
adm5120 | 9 years ago | |
adm8668 | 9 years ago | |
ar7 | 9 years ago | |
ar71xx | 9 years ago | |
arm64 | 9 years ago | |
at91 | 9 years ago | |
ath25 | 9 years ago | |
au1000 | 9 years ago | |
bcm53xx | 9 years ago | |
brcm47xx | 9 years ago | |
brcm63xx | 9 years ago | |
brcm2708 | 9 years ago | |
cns3xxx | 9 years ago | |
gemini | 9 years ago | |
generic | 9 years ago | |
imx6 | 9 years ago | |
ipq806x | 9 years ago | |
ixp4xx | 9 years ago | |
kirkwood | 9 years ago | |
lantiq | 9 years ago | |
malta | 9 years ago | |
mcs814x | 9 years ago | |
mpc85xx | 9 years ago | |
mvebu | 9 years ago | |
mxs | 9 years ago | |
netlogic | 9 years ago | |
octeon | 9 years ago | |
omap | 9 years ago | |
omap24xx | 9 years ago | |
orion | 9 years ago | |
oxnas | 9 years ago | |
ppc40x | 9 years ago | |
ppc44x | 9 years ago | |
pxa | 9 years ago | |
ramips | 9 years ago | |
rb532 | 9 years ago | |
realview | 9 years ago | |
sunxi | 9 years ago | |
uml | 9 years ago | |
x86 | 9 years ago | |
xburst | 9 years ago | |
Makefile | 14 years ago |