thermal: qcom: tsens-8916: mark PM functions __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Jul 2016 13:12:28 +0000 (15:12 +0200)
committerZhang Rui <rui.zhang@intel.com>
Wed, 24 Aug 2016 07:53:07 +0000 (15:53 +0800)
commite7389471a91fe7e4629821ddfcce0bece0a8399b
treea235f19f006792f2c33697b8f0455119ccbd7545
parent1b9e177ea9105ee9c20fa962fbe39aa600794823
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>
drivers/thermal/qcom/tsens.c
This page took 0.027124 seconds and 5 git commands to generate.