linux/drivers/thermal
Arnd Bergmann 117c28bef3 thermal: spear: use __maybe_unused for PM functions
commit d612c64d1f upstream.

The spear thermal driver hides its suspend/resume function conditionally
based on CONFIG_PM, but references them based on CONFIG_PM_SLEEP, so
we get a warning if the former is set but the latter is not:

thermal/spear_thermal.c:58:12: warning: 'spear_thermal_suspend' defined but not used [-Wunused-function]
thermal/spear_thermal.c:75:12: warning: 'spear_thermal_resume' defined but not used [-Wunused-function]

This removes the #ifdef and instead uses a __maybe_uninitialized
annotation to avoid the warning and improve compile-time coverage.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:44 +01:00
..
int340x_thermal
samsung
st
ti-soc-thermal
armada_thermal.c
clock_cooling.c
cpu_cooling.c thermal: cpu_cooling: Avoid accessing potentially freed structures 2017-07-27 15:06:02 -07:00
db8500_cpufreq_cooling.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c thermal: hisilicon: Handle return value of clk_prepare_enable 2017-12-25 14:22:15 +01:00
imx_thermal.c
intel_pch_thermal.c
intel_powerclamp.c
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c
Kconfig thermal: fix INTEL_SOC_DTS_IOSF_CORE dependencies 2018-02-25 11:03:43 +01:00
kirkwood_thermal.c
Makefile
of-thermal.c
power_allocator.c
qcom-spmi-temp-alarm.c
rcar_thermal.c
rockchip_thermal.c thermal: rockchip: fix a impossible condition caused by the warning 2016-05-04 14:48:54 -07:00
spear_thermal.c thermal: spear: use __maybe_unused for PM functions 2018-02-25 11:03:44 +01:00
step_wise.c thermal/drivers/step_wise: Fix temperature regulation misbehavior 2017-12-20 10:04:59 +01:00
tegra_soctherm.c
thermal_core.c Thermal: Ignore invalid trip points 2016-04-12 09:08:35 -07:00
thermal_core.h Thermal: initialize thermal zone device correctly 2016-03-03 15:07:25 -08:00
thermal_hwmon.c thermal: hwmon: Properly report critical temperature in sysfs 2017-01-09 08:07:44 +01:00
thermal_hwmon.h
user_space.c
x86_pkg_temp_thermal.c