linux/drivers/soc
Arnd Bergmann e50d38bdfc soc: qcom/spm: shut up uninitialized variable warning
commit 00affcac69 upstream.

gcc warns about the 'found' variable possibly being used uninitialized:

drivers/soc/qcom/spm.c: In function 'spm_dev_probe':
drivers/soc/qcom/spm.c:305:5: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized]

However, the code is correct because we know that there is
always at least one online CPU. This initializes the 'found'
variable to zero before the loop so the compiler knows
it does not have to warn about it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-24 10:07:42 +02:00
..
brcmstb soc: brcmstb: Add Bus Interface Unit control setup 2015-10-09 13:42:16 -07:00
dove soc: dove: Let genpd deal with disabling of unused PM domains 2015-10-12 23:27:01 +02:00
mediatek soc: Mediatek: Enable SCPSYS power domain driver by default 2015-11-24 10:15:38 -08:00
qcom soc: qcom/spm: shut up uninitialized variable warning 2016-09-24 10:07:42 +02:00
rockchip soc: rockchip: power-domain: fix err handle while probing 2016-05-11 11:21:11 +02:00
sunxi drivers: soc: sunxi: Introduce SoC driver to map SRAMs 2015-06-01 17:57:34 +02:00
tegra soc/tegra: pmc: Use existing pclk reference 2015-08-13 16:49:58 +02:00
ti soc: ti: knav_qmss_queue: Fix linking RAM setup for queue managers 2015-11-23 10:36:27 -08:00
versatile drivers/soc: Convert non-modular soc-realview to use builtin_platform_driver 2015-06-16 14:12:38 -04:00
Kconfig ARM: SoC driver updates for v4.4 2015-11-10 15:00:03 -08:00
Makefile ARM: SoC driver updates for v4.4 2015-11-10 15:00:03 -08:00