diff options
author | Bard Liao <yung-chuan.liao@linux.intel.com> | 2020-08-24 16:32:34 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-08-26 11:46:22 +0300 |
commit | f046b2334083c6e2bab96a8d7eba76684cf4b03e (patch) | |
tree | 7017982039949d8b89fadab3201ad697d99e6a9d /net/sched/cls_fw.c | |
parent | 08abad9f45f105e947d91822bdbc47650fbd7773 (diff) | |
download | linux-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 'net/sched/cls_fw.c')
0 files changed, 0 insertions, 0 deletions