openwrtv4/target/linux/ipq806x/patches-4.1
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
..
020-add-ap148-bootargs.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
021-add-ap148-partitions.patch ipq806x: switch AP148 to using SMEM based MTD parser 2015-08-17 06:18:15 +00:00
022-add-db149-dts.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
023-ARM-dts-ipq806x-Disable-i2c-device-on-gsbi4.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
024-ap148-add-memory-node.patch ipq806x: add support for non-dt enabled ap148 bootloader 2015-08-04 23:09:43 +00:00
030-hwspinlock-core-add-device-tree-support.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
031-hwspinlock-qcom-Add-support-for-Qualcomm-HW-Mutex-bl.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
032-hwspinlock-qcom-Correct-msb-in-regmap_field.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
033-ARM-qcom-add-SFPB-nodes-to-IPQ806x-dts.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
034-soc-qcom-Add-device-tree-binding-for-SMEM.patch ipq806x: add SMEM support 2015-08-17 06:17:58 +00:00
035-soc-qcom-Add-Shared-Memory-Manager-driver.patch ipq806x: add SMEM support 2015-08-17 06:17:58 +00:00
036-ARM-qcom-add-SMEM-device-node-to-IPQ806x-dts.patch ipq806x: add SMEM support 2015-08-17 06:17:58 +00:00
037-mtd-add-SMEM-parser-for-QCOM-platforms.patch ipq806x: add QCOM SMEM based MTD parser 2015-08-17 06:18:04 +00:00
110-DT-PCI-qcom-Document-PCIe-devicetree-bindings.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
111-PCI-qcom-Add-Qualcomm-PCIe-controller-driver.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
112-ARM-dts-qcom-add-pcie-nodes-to-ipq806x-platforms.patch ipq806x: switch AP148 to using SMEM based MTD parser 2015-08-17 06:18:15 +00:00
113-ARM-qcom-automatically-select-PCI_DOMAINS-if-PCI-is-.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
114-pcie-add-ctlr-init.patch ipq806x: fix freeze in PCIe code when booting with an old u-boot 2015-08-04 23:10:03 +00:00
115-add-pcie-aux-clk-dts.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
126-add-rpm-to-ipq8064-dts.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
133-ARM-Add-Krait-L2-register-accessor-functions.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
134-clk-mux-Split-out-register-accessors-for-reuse.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
135-clk-Avoid-sending-high-rates-to-downstream-clocks-during-set_rate.patch kernel: update 4.1 to 4.1.4 2015-08-05 13:55:14 +00:00
136-clk-Add-safe-switch-hook.patch kernel: update 4.1 to 4.1.4 2015-08-05 13:55:14 +00:00
137-clk-qcom-Add-support-for-High-Frequency-PLLs-HFPLLs.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
138-clk-qcom-Add-HFPLL-driver.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
139-clk-qcom-Add-IPQ806X-s-HFPLLs.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
140-clk-qcom-Add-support-for-Krait-clocks.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
141-clk-qcom-Add-KPSS-ACC-GCC-driver.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
142-clk-qcom-Add-Krait-clock-controller-driver.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
143-cpufreq-Add-module-to-register-cpufreq-on-Krait-CPUs.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
144-ARM-dts-qcom-Add-necessary-DT-data-for-Krait-cpufreq.patch ipq806x: add support for non-dt enabled ap148 bootloader 2015-08-04 23:09:43 +00:00
145-cpufreq-Add-a-cpufreq-krait-based-on-cpufre.patch ipq806x: fix uninitialized variable usage in cpufreq-krait 2015-09-10 10:09:42 +00:00
155-dt-bindings-qcom_adm-Fix-channel-specifiers.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +00:00
156-dmaengine-Add-ADM-driver.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +00:00
157-ARM-DT-ipq8064-Add-ADM-device-node.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
161-mtd-nand-Create-a-BBT-flag-to-access-bad-block-markers-in-raw-mode.patch ipq806x: add NAND flash controller support 2015-08-07 08:36:31 +00:00
162-mtd-nand-Qualcomm-NAND-controller-driver.patch ipq806x: add NAND flash controller support 2015-08-07 08:36:31 +00:00
163-dt-bindings-qcom_nandc-Add-DT-bindings.patch ipq806x: add NAND flash controller support 2015-08-07 08:36:31 +00:00
164-arm-qcom-dts-Add-NAND-controller-node-for-ipq806x.patch ipq806x: add hwspinlock support 2015-08-17 06:17:47 +00:00
165-arm-qcom-dts-Enable-NAND-node-on-IPQ8064-AP148-platform.patch ipq806x: switch AP148 to using SMEM based MTD parser 2015-08-17 06:18:15 +00:00
166-arch-qcom-dts-enable-qcom-smem-on-AP148-NAND.patch ipq806x: enable smem-parser for nand on AP148 2015-09-04 14:44:36 +00:00
300-arch-arm-force-ZRELADDR-on-arch-qcom.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
301-ARM-qcom-add-Netgear-Nighthawk-X4-R7500-device-tree.patch ipq806x: add support for Netgear Nighthawk X4 R7500 2015-09-04 14:46:06 +00:00
302-mtd-qcom-smem-rename-rootfs-ubi.patch ipq806x: rename "rootfs" to "ubi" on nand 2015-09-04 14:44:44 +00:00
700-clk-qcom-Add-support-for-NSS-GMAC-clocks-and-resets.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
701-stmmac-add-phy-handle-support-to-the-platform-layer.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
702-stmmac-move-error-path-at-the-end-of-stmmac_probe_co.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
703-stmmac-add-fixed-link-device-tree-support.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
704-stmmac-add-ipq806x-glue-layer.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
705-net-stmmac-ipq806x-document-device-tree-bindings.patch ipq806x: update bleeding-edge kernel from 4.0 to 4.1 2015-08-04 23:09:38 +00:00
707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch ipq806x: enable smem-parser for nand on AP148 2015-09-04 14:44:36 +00:00
708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch ipq806x: enable smem-parser for nand on AP148 2015-09-04 14:44:36 +00:00
709-stmac-platform-add-support-for-retreiving-mac-from-m.patch ipq806x: add support for retrieving macs from mtd 2015-09-04 14:45:40 +00:00