diff options
author | Arnd Bergmann <[email protected]> | 2016-07-04 15:12:28 +0200 |
---|---|---|
committer | Zhang Rui <[email protected]> | 2016-09-27 14:02:16 +0800 |
commit | 5b97469a55872a30a0d53a1279a8ae8b1c68b52c (patch) | |
tree | bd4db74c0a3e223dfa3743bfdeb58bd5d7e3dca0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 43528445f6db0e934592a0c58b5a71d6be51aa41 (diff) |
thermal: qcom: tsens-8916: mark PM functions __maybe_unused
The newly added tsens-8916 driver produces warnings when CONFIG_PM
is disabled:
drivers/thermal/qcom/tsens.c:53:12: error: 'tsens_resume' defined but not used [-Werror=unused-function]
static int tsens_resume(struct device *dev)
^~~~~~~~~~~~
drivers/thermal/qcom/tsens.c:43:12: error: 'tsens_suspend' defined but not used [-Werror=unused-function]
static int tsens_suspend(struct device *dev)
^~~~~~~~~~~~~
This marks both functions __maybe_unused to let the compiler
know that they might be used in other configurations, without
adding ugly #ifdef logic.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Rajendra Nayak <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions