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.
openwrt/target/linux
Jonas Gorski 82fb27917b ipq806x: fix uninitialized variable usage in cpufreq-krait
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 adm5120: disable the openwrt commandline hack 9 years ago
adm8668 build: Prevent more gzip timestamps 9 years ago
ar7 ar7: fix HIGHMEM_START (#20427) 9 years ago
ar71xx image: move netgear-image to top and rename to -dni 9 years ago
arm64 arm64: use common image prefix 9 years ago
at91 at91: fix usb rate backport patch tab mangle 9 years ago
ath25 ath25: disable the openwrt commandline hack 9 years ago
au1000 image: fix jffs2(_nand) image generation 9 years ago
bcm53xx bcm53xx: support sysupgrade with Netgear R7000 original firmware 9 years ago
brcm47xx brcm47xx: apply serial flash size trick to Netgear WNR1000 V3 9 years ago
brcm63xx kernel: update 3.18 to 3.18.21 9 years ago
brcm2708 kernel: update 3.18 to 3.18.21 9 years ago
cns3xxx kernel: update 3.18 to 3.18.21 9 years ago
gemini kernel: refresh patches for 4.1 9 years ago
generic generic: Fix per interface nf_call_iptables setting 9 years ago
imx6 kernel: update 3.18 to 3.18.14 9 years ago
ipq806x ipq806x: fix uninitialized variable usage in cpufreq-krait 9 years ago
ixp4xx kernel: update 4.1 to 4.1.5 9 years ago
kirkwood kirkwood: add wpad-mini to router profiles 9 years ago
lantiq kernel: update 3.18 to 3.18.21 9 years ago
malta malta: disable the openwrt commandline hack 9 years ago
mcs814x mcs814x: use firmware partition splitter on dLAN USB Extender 9 years ago
mpc85xx mpc85xx: Enable RFKill and USB Power GPIO Control for WDR4900v1 9 years ago
mvebu This had been set in r44508 as a workaround for switch problems. 9 years ago
mxs kernel: update 4.1 to 4.1.4 9 years ago
netlogic netlogic: copy initramfs image to $(BIN_DIR) 9 years ago
octeon octeon: fix imagebuilder 9 years ago
omap kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4 9 years ago
omap24xx omap24xx: Add basic config for linux-4.0 9 years ago
orion kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4 9 years ago
oxnas kernel: update 4.1 to 4.1.6 9 years ago
ppc40x ppc40x: upgrade to 3.18 9 years ago
ppc44x image: fix jffs2(_nand) image generation 9 years ago
pxa kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 9 years ago
ramips kernel: update 3.18 to 3.18.21 9 years ago
rb532 kernel: update 3.18 to 3.18.14 9 years ago
realview realview: use common image prefix 9 years ago
sunxi kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4 9 years ago
uml uml: remove linux 3.14 support 9 years ago
x86 kernel: remove kmod-crypto-aes, AES crypto support is always built into the kernel 9 years ago
xburst image: fix jffs2(_nand) image generation 9 years ago
Makefile Add kernel_nconfig make target 14 years ago