openwrtv4/target/linux/ipq806x/patches-3.18
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
..
001-spi-qup-Add-DMA-capabilities.patch kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
002-v3-spi-qup-Fix-incorrect-block-transfers.patch ipq806x: rename patches in patches-3.18 2015-03-06 07:56:58 +00:00
003-spi-qup-Ensure-done-detection.patch ipq806x: rename patches in patches-3.18 2015-03-06 07:56:58 +00:00
011-watchdog-qcom-use-timer-devicetree-binding.patch kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
012-ARM-qcom-add-description-of-KPSS-WDT-for-IPQ8064.patch kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
013-ARM-msm-add-watchdog-entries-to-DT-timer-binding-doc.patch ipq806x: rename patches in patches-3.18 2015-03-06 07:56:58 +00:00
020-add-ap148-bootargs.patch ipq806x: move 020-add-ap148-bootargs.patch in patches-3.18 2015-04-01 08:31:52 +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: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
023-ARM-dts-ipq806x-Disable-i2c-device-on-gsbi4.patch ipq806x: disable i2c device on gsbi4 2015-05-23 15:27:45 +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
100-usb-phy-Add-Qualcomm-DWC3-HS-SS-PHY-drivers.patch ipq806x: add platform usb support 2015-04-03 19:06:30 +00:00
101-ARM-qcom-add-USB-nodes-to-ipq806x-ap148.patch ipq806x: switch AP148 to using SMEM based MTD parser 2015-08-17 06:18:15 +00:00
102-soc-qcom-gsbi-Add-support-for-ADM-CRCI-muxing.patch kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
103-ARM-DT-ipq8064-Add-TCSR-support.patch ipq806x: add platform usb support 2015-04-03 19:06:30 +00:00
110-DT-PCI-qcom-Document-PCIe-devicetree-bindings.patch kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +00:00
111-PCI-qcom-Add-Qualcomm-PCIe-controller-driver.patch ipq806x: add pcie support to ipq806x based platforms 2015-05-10 11:47:09 +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: add pcie support to ipq806x based platforms 2015-05-10 11:47:09 +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
120-mfd-qcom-rpm-Driver-for-the-Qualcomm-RPM.patch ipq806x: add power regulators support 2015-05-23 15:27:54 +00:00
121-mfd-qcom_rpm-Add-support-for-IPQ8064.patch ipq806x: add power regulators support 2015-05-23 15:27:54 +00:00
122-mfd-devicetree-bindings-Add-Qualcomm-RPM-DT-binding.patch kernel: update 3.18 to 3.18.16 2015-06-17 09:54:55 +00:00
123-mfd-devicetree-qcom_rpm-Document-IPQ8064-resources.patch ipq806x: add power regulators support 2015-05-23 15:27:54 +00:00
124-regulator-rpm-add-support-for-RPM-controller-SMB208.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
125-regulator-qcom-rpm-Add-missing-state-flag-in-call-to.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
126-add-rpm-to-ipq8064-dts.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
130-clk_mux-Fix-set_parent-doing-the-wrong-thing-when-IN.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
131-clk-Add-__clk_mux_determine_rate_closest.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
132-clk-Add-clk_unregister_-divider-gate-mux-to-close-me.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
133-ARM-Add-Krait-L2-register-accessor-functions.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
134-clk-mux-Split-out-register-accessors-for-reuse.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
135-clk-Avoid-sending-high-rates-to-downstream-clocks-during-set_rate.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
136-clk-Add-safe-switch-hook.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
137-clk-qcom-Add-support-for-High-Frequency-PLLs-HFPLLs.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
138-clk-qcom-Add-HFPLL-driver.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
139-clk-qcom-Add-IPQ806X-s-HFPLLs.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
140-clk-qcom-Add-support-for-Krait-clocks.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
141-clk-qcom-Add-KPSS-ACC-GCC-driver.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
142-clk-qcom-Add-Krait-clock-controller-driver.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
143-cpufreq-Add-module-to-register-cpufreq-on-Krait-CPUs.patch ipq806x: add & enable cpufreq support 2015-05-23 15:28:02 +00:00
144-ARM-dts-qcom-Add-necessary-DT-data-for-Krait-cpufreq.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +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
150-dmaengine-Rework-dma_chan_get.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +00:00
151-dmaengine-Remove-the-need-to-declare-device_control.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +00:00
152-dmaengine-Make-channel-allocation-callbacks-optional.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +00:00
153-dmaengine-Introduce-a-device_config-callback.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +00:00
154-dmaengine-Add-device_terminate_all-callback.patch ipq806x: Add ADM support 2015-08-07 08:36:16 +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
160-clk-qcom-Add-EBI2-clocks-for-IPQ806x.patch ipq806x: add NAND flash controller support 2015-08-07 08:36:31 +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 kernel: update 3.18 to 3.18.14 2015-05-21 19:32:46 +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: add NAND flash controller support 2015-08-07 08:36:31 +00:00
701-stmmac-add-phy-handle-support-to-the-platform-layer.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
702-stmmac-move-error-path-at-the-end-of-stmmac_probe_co.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
703-stmmac-add-fixed-link-device-tree-support.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
704-stmmac-add-ipq806x-glue-layer.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
705-net-stmmac-ipq806x-document-device-tree-bindings.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +00:00
706-net-stmmac-create-one-debugfs-dir-per-net-device.patch ipq806x: replace caf nss-gmac driver by upstream stmmac 2015-05-29 12:26:01 +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