summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2020-08-24 16:32:34 +0300
committerVinod Koul <vkoul@kernel.org>2020-08-26 11:46:22 +0300
commitf046b2334083c6e2bab96a8d7eba76684cf4b03e (patch)
tree7017982039949d8b89fadab3201ad697d99e6a9d /COPYING
parent08abad9f45f105e947d91822bdbc47650fbd7773 (diff)
downloadlinux-f046b2334083c6e2bab96a8d7eba76684cf4b03e.tar.xz
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 'COPYING')
0 files changed, 0 insertions, 0 deletions