kernel_optimize_test/drivers/thermal/qcom
Arnd Bergmann 5b97469a55 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 <arnd@arndb.de>
Reviewed-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2016-09-27 14:02:16 +08:00
..
Kconfig
Makefile thermal: qcom: tsens-8996: Add support for 8996 family of SoCs 2016-09-27 14:02:16 +08:00
tsens-8916.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-8960.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-8974.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-8996.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-common.c
tsens.c thermal: qcom: tsens-8916: mark PM functions __maybe_unused 2016-09-27 14:02:16 +08:00
tsens.h thermal: streamline get_trend callbacks 2016-09-27 14:02:16 +08:00