android_kernel_oneplus_msm8998/drivers/soc/qcom
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
..
Kconfig soc: qcom/smem: add HWSPINLOCK dependency 2015-10-15 23:04:11 +02:00
Makefile soc: qcom: Driver for the Qualcomm RPM over SMD 2015-07-29 14:13:48 -05:00
qcom_gsbi.c soc: qcom: gsbi: Add support for ADM CRCI muxing 2015-03-11 15:18:39 -05:00
smd-rpm.c soc: qcom: smd-rpm: Correct size of outgoing message 2015-10-31 01:51:20 +00:00
smd.c soc: qcom: smd: delete unneeded of_node_put 2015-10-14 14:51:22 -05:00
smem.c soc: qcom: smem: Move RPM message ram out of smem DT node 2015-10-14 14:51:40 -05:00
spm.c soc: qcom/spm: shut up uninitialized variable warning 2016-09-24 10:07:42 +02:00