2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/drivers/thermal/tegra
Arnd Bergmann a977c41ec6 thermal: tegra: mark PM functions __maybe_unused
After the PM support has been added to this driver, we get
a harmless warning when that support is disabled at compile
time:

drivers/thermal/tegra/soctherm.c:641:12: error: 'soctherm_resume' defined but not used [-Werror=unused-function]
 static int soctherm_resume(struct device *dev)

This marks the two PM functions as __maybe_unused to shut up
the warning. This is preferred over adding an #ifdef around
them, as it is harder to get wrong, and provides better
compile-time coverage.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: a134b4143b65 ("thermal: tegra: add PM support")
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2016-05-17 07:28:30 -07:00
..
Kconfig thermal: tegra: split tegra_soctherm driver 2016-05-17 07:28:28 -07:00
Makefile thermal: tegra: add Tegra210 specific SOC_THERM driver 2016-05-17 07:28:28 -07:00
soctherm-fuse.c thermal: tegra: add Tegra210 specific SOC_THERM driver 2016-05-17 07:28:28 -07:00
soctherm.c thermal: tegra: mark PM functions __maybe_unused 2016-05-17 07:28:30 -07:00
soctherm.h thermal: tegra: add thermtrip function 2016-05-17 07:28:29 -07:00
tegra124-soctherm.c thermal: tegra: add thermtrip function 2016-05-17 07:28:29 -07:00
tegra210-soctherm.c thermal: tegra: add thermtrip function 2016-05-17 07:28:29 -07:00