summaryrefslogtreecommitdiffstats
path: root/Documentation/cgroup-v1
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-25 17:44:10 +0100
committerEduardo Valentin <edubezval@gmail.com>2016-02-09 14:12:08 -0800
commitd612c64d1f4d6b2464993dfeafd9ec319f774188 (patch)
treef677ab62a8f72606a105a1e33866f50647905d9d /Documentation/cgroup-v1
parent8b477ea56383dc8b838f1f8b506e4571c14ceb30 (diff)
downloadblackbird-op-linux-d612c64d1f4d6b2464993dfeafd9ec319f774188.tar.gz
blackbird-op-linux-d612c64d1f4d6b2464993dfeafd9ec319f774188.zip
thermal: spear: use __maybe_unused for PM functions
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>
Diffstat (limited to 'Documentation/cgroup-v1')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud