android_kernel_oneplus_msm8998/drivers/soc
Arnd Bergmann e50d38bdfc soc: qcom/spm: shut up uninitialized variable warning
commit 00affcac69c7aae6c2cfcbc71f724e1c16d0b445 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
dove
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
tegra
ti soc: ti: knav_qmss_queue: Fix linking RAM setup for queue managers 2015-11-23 10:36:27 -08:00
versatile
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