openwrtv4/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
2015-09-10 10:09:42 +00:00
..
adm5120 adm5120: disable the openwrt commandline hack 2015-08-30 12:17:54 +00:00
adm8668 build: Prevent more gzip timestamps 2015-07-14 09:57:45 +00:00
ar7 ar7: fix HIGHMEM_START (#20427) 2015-09-02 16:22:44 +00:00
ar71xx image: move netgear-image to top and rename to -dni 2015-09-04 14:45:09 +00:00
arm64 arm64: use common image prefix 2015-05-27 14:57:38 +00:00
at91 at91: fix usb rate backport patch tab mangle 2015-08-17 16:10:49 +00:00
ath25 ath25: disable the openwrt commandline hack 2015-08-30 12:17:56 +00:00
au1000 image: fix jffs2(_nand) image generation 2015-08-05 13:55:52 +00:00
bcm53xx bcm53xx: support sysupgrade with Netgear R7000 original firmware 2015-08-26 15:21:14 +00:00
brcm47xx brcm47xx: apply serial flash size trick to Netgear WNR1000 V3 2015-09-08 05:24:57 +00:00
brcm63xx kernel: update 3.18 to 3.18.21 2015-09-02 10:18:15 +00:00
brcm2708 kernel: update 3.18 to 3.18.21 2015-09-02 10:18:15 +00:00
cns3xxx kernel: update 3.18 to 3.18.21 2015-09-02 10:18:15 +00:00
gemini kernel: refresh patches for 4.1 2015-07-22 12:51:11 +00:00
generic generic: Fix per interface nf_call_iptables setting 2015-09-09 18:40:15 +00:00
imx6 kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
ipq806x ipq806x: fix uninitialized variable usage in cpufreq-krait 2015-09-10 10:09:42 +00:00
ixp4xx kernel: update 4.1 to 4.1.5 2015-08-14 13:06:33 +00:00
kirkwood kirkwood: add wpad-mini to router profiles 2015-08-05 13:56:02 +00:00
lantiq kernel: update 3.18 to 3.18.21 2015-09-02 10:18:15 +00:00
malta malta: disable the openwrt commandline hack 2015-08-30 12:18:05 +00:00
mcs814x mcs814x: use firmware partition splitter on dLAN USB Extender 2015-08-17 06:16:19 +00:00
mpc85xx mpc85xx: Enable RFKill and USB Power GPIO Control for WDR4900v1 2015-07-09 06:56:45 +00:00
mvebu This had been set in r44508 as a workaround for switch problems. 2015-08-21 08:10:48 +00:00
mxs kernel: update 4.1 to 4.1.4 2015-08-05 13:55:14 +00:00
netlogic netlogic: copy initramfs image to $(BIN_DIR) 2015-04-23 22:31:36 +00:00
octeon octeon: fix imagebuilder 2015-05-29 11:28:20 +00:00
omap kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4 2015-09-08 12:31:04 +00:00
omap24xx omap24xx: Add basic config for linux-4.0 2015-03-19 18:45:32 +00:00
orion kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4 2015-09-08 12:31:04 +00:00
oxnas kernel: update 4.1 to 4.1.6 2015-08-23 18:06:11 +00:00
ppc40x ppc40x: upgrade to 3.18 2015-04-12 20:48:13 +00:00
ppc44x image: fix jffs2(_nand) image generation 2015-08-05 13:55:52 +00:00
pxa kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ramips kernel: update 3.18 to 3.18.21 2015-09-02 10:18:15 +00:00
rb532 kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
realview realview: use common image prefix 2015-05-27 15:34:38 +00:00
sunxi kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4 2015-09-08 12:31:04 +00:00
uml uml: remove linux 3.14 support 2015-03-28 13:20:52 +00:00
x86 kernel: remove kmod-crypto-aes, AES crypto support is always built into the kernel 2015-07-24 15:36:08 +00:00
xburst image: fix jffs2(_nand) image generation 2015-08-05 13:55:52 +00:00
Makefile Add kernel_nconfig make target 2010-08-06 21:36:35 +00:00