mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
82fb27917b
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 |
||
---|---|---|
.. | ||
020-add-ap148-bootargs.patch | ||
021-add-ap148-partitions.patch | ||
022-add-db149-dts.patch | ||
023-ARM-dts-ipq806x-Disable-i2c-device-on-gsbi4.patch | ||
024-ap148-add-memory-node.patch | ||
030-hwspinlock-core-add-device-tree-support.patch | ||
031-hwspinlock-qcom-Add-support-for-Qualcomm-HW-Mutex-bl.patch | ||
032-hwspinlock-qcom-Correct-msb-in-regmap_field.patch | ||
033-ARM-qcom-add-SFPB-nodes-to-IPQ806x-dts.patch | ||
034-soc-qcom-Add-device-tree-binding-for-SMEM.patch | ||
035-soc-qcom-Add-Shared-Memory-Manager-driver.patch | ||
036-ARM-qcom-add-SMEM-device-node-to-IPQ806x-dts.patch | ||
037-mtd-add-SMEM-parser-for-QCOM-platforms.patch | ||
110-DT-PCI-qcom-Document-PCIe-devicetree-bindings.patch | ||
111-PCI-qcom-Add-Qualcomm-PCIe-controller-driver.patch | ||
112-ARM-dts-qcom-add-pcie-nodes-to-ipq806x-platforms.patch | ||
113-ARM-qcom-automatically-select-PCI_DOMAINS-if-PCI-is-.patch | ||
114-pcie-add-ctlr-init.patch | ||
115-add-pcie-aux-clk-dts.patch | ||
126-add-rpm-to-ipq8064-dts.patch | ||
133-ARM-Add-Krait-L2-register-accessor-functions.patch | ||
134-clk-mux-Split-out-register-accessors-for-reuse.patch | ||
135-clk-Avoid-sending-high-rates-to-downstream-clocks-during-set_rate.patch | ||
136-clk-Add-safe-switch-hook.patch | ||
137-clk-qcom-Add-support-for-High-Frequency-PLLs-HFPLLs.patch | ||
138-clk-qcom-Add-HFPLL-driver.patch | ||
139-clk-qcom-Add-IPQ806X-s-HFPLLs.patch | ||
140-clk-qcom-Add-support-for-Krait-clocks.patch | ||
141-clk-qcom-Add-KPSS-ACC-GCC-driver.patch | ||
142-clk-qcom-Add-Krait-clock-controller-driver.patch | ||
143-cpufreq-Add-module-to-register-cpufreq-on-Krait-CPUs.patch | ||
144-ARM-dts-qcom-Add-necessary-DT-data-for-Krait-cpufreq.patch | ||
145-cpufreq-Add-a-cpufreq-krait-based-on-cpufre.patch | ||
155-dt-bindings-qcom_adm-Fix-channel-specifiers.patch | ||
156-dmaengine-Add-ADM-driver.patch | ||
157-ARM-DT-ipq8064-Add-ADM-device-node.patch | ||
161-mtd-nand-Create-a-BBT-flag-to-access-bad-block-markers-in-raw-mode.patch | ||
162-mtd-nand-Qualcomm-NAND-controller-driver.patch | ||
163-dt-bindings-qcom_nandc-Add-DT-bindings.patch | ||
164-arm-qcom-dts-Add-NAND-controller-node-for-ipq806x.patch | ||
165-arm-qcom-dts-Enable-NAND-node-on-IPQ8064-AP148-platform.patch | ||
166-arch-qcom-dts-enable-qcom-smem-on-AP148-NAND.patch | ||
300-arch-arm-force-ZRELADDR-on-arch-qcom.patch | ||
301-ARM-qcom-add-Netgear-Nighthawk-X4-R7500-device-tree.patch | ||
302-mtd-qcom-smem-rename-rootfs-ubi.patch | ||
700-clk-qcom-Add-support-for-NSS-GMAC-clocks-and-resets.patch | ||
701-stmmac-add-phy-handle-support-to-the-platform-layer.patch | ||
702-stmmac-move-error-path-at-the-end-of-stmmac_probe_co.patch | ||
703-stmmac-add-fixed-link-device-tree-support.patch | ||
704-stmmac-add-ipq806x-glue-layer.patch | ||
705-net-stmmac-ipq806x-document-device-tree-bindings.patch | ||
707-ARM-dts-qcom-add-mdio-nodes-to-ap148-db149.patch | ||
708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch | ||
709-stmac-platform-add-support-for-retreiving-mac-from-m.patch |