linux-uconsole/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 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2015-11-11 09:03:01 -08:00
st Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2015-09-11 16:13:47 -07:00
ti-soc-thermal thermal: ti-soc-thermal: add OMAP36xx support 2015-09-29 14:13:19 -07:00
armada_thermal.c thermal: armada: Fix possible overflow in the Armada 380 thermal sensor formula 2015-10-30 11:33:23 -07:00
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 thermal: db8500_cpufreq_cooling: Fix module autoload for OF platform driver 2015-09-13 20:26:19 -07:00
db8500_thermal.c
devfreq_cooling.c devfreq_cooling: return on allocation failure 2015-11-04 11:06:29 -08:00
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 imx: thermal: use CPU temperature grade info for thresholds 2015-11-23 16:38:40 -08:00
intel_pch_thermal.c thermal: fix intel PCH thermal driver mismerge 2015-09-11 20:06:59 -07:00
intel_powerclamp.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2015-09-11 16:13:47 -07:00
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 thermal: Add devfreq cooling 2015-10-30 10:21:01 -07:00
of-thermal.c thermal: of-thermal: Reduce log level for message when can't fine thermal zone 2015-11-16 10:49:17 -08:00
power_allocator.c thermal: power_allocator: Use temperature reading from tz 2015-11-12 10:47:24 -08:00
qcom-spmi-temp-alarm.c
rcar_thermal.c thermal: rcar_thermal: remove redundant operation 2015-11-16 10:53:08 -08:00
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