diff options
author | Bard Liao <yung-chuan.liao@linux.intel.com> | 2020-08-24 21:32:34 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-08-26 14:16:22 +0530 |
commit | f046b2334083c6e2bab96a8d7eba76684cf4b03e (patch) | |
tree | 7017982039949d8b89fadab3201ad697d99e6a9d /drivers/base | |
parent | 08abad9f45f105e947d91822bdbc47650fbd7773 (diff) |
soundwire: intel: fix intel_suspend/resume defined but not used warning
When CONFIG_PM_SLEEP is not defined, GCC throws compilation warnings:
drivers/soundwire/intel.c:1799:12: warning: ‘intel_resume’ defined but not
used [-Wunused-function]
static int intel_resume(struct device *dev)
^~~~~~~~~~~~
drivers/soundwire/intel.c:1683:12: warning: ‘intel_suspend’ defined but not
used [-Wunused-function]
static int intel_suspend(struct device *dev)
^~~~~~~~~~~~~
Fix by using __maybe_unused macro.
Suggested-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200824133234.28115-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions