diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2016-01-25 17:44:10 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-25 11:03:44 +0100 |
| commit | 117c28bef36365a9e57777640a80ebea6171bfd1 (patch) | |
| tree | 57f4331ace77aa3f3b911425e15ff08af28a0e4e /tools/perf/scripts/python/syscall-counts.py | |
| parent | 8205dd3aa3d7b313aa19b13a377928fb2b3ed20d (diff) | |
thermal: spear: use __maybe_unused for PM functions
commit d612c64d1f4d6b2464993dfeafd9ec319f774188 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>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
