summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-04-16 22:19:33 +0200
committerEduardo Valentin <edubezval@gmail.com>2016-05-17 07:28:30 -0700
commita977c41ec65bbdc5000a130372adba1f85c86833 (patch)
tree8b03b81eaf86f74a4ff9d4f029e3c1e4b334424b /Makefile
parent0b58c08b593d082858e74503bdf553ea01f9f15a (diff)
downloadlinux-stable-a977c41ec65bbdc5000a130372adba1f85c86833.tar.gz
linux-stable-a977c41ec65bbdc5000a130372adba1f85c86833.tar.bz2
linux-stable-a977c41ec65bbdc5000a130372adba1f85c86833.zip
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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions