linux-next: build warnings after merge of the thermal-soc tree

From: Stephen Rothwell
Date: Mon Mar 26 2018 - 21:24:34 EST


Hi Eduardo,

After merging the thermal-soc tree, today's linux-next build (arm
multi_v7_defconfig) produced these warnings:

drivers/thermal/samsung/exynos_tmu.c: In function 'exynos_get_temp':
drivers/thermal/samsung/exynos_tmu.c:931:37: warning: 'temp' may be used uninitialized in this function [-Wmaybe-uninitialized]
*temp = code_to_temp(data, value) * MCELSIUS;
^
drivers/thermal/samsung/exynos_tmu.c: In function 'temp_to_code':
drivers/thermal/samsung/exynos_tmu.c:304:9: warning: 'temp_code' may be used uninitialized in this function [-Wmaybe-uninitialized]
return temp_code;
^~~~~~~~~

Introduced by commit

480b5bfc16e1 ("thermal: exynos: remove parsing of samsung, tmu_default_temp_offset property")

--
Cheers,
Stephen Rothwell

Attachment: pgpsULNk6OaTh.pgp
Description: OpenPGP digital signature