Re: [PATCH v2] soundwire: intel: fix intel_suspend/resume defined but not used warning

From: Vinod Koul
Date: Wed Aug 26 2020 - 04:46:42 EST


On 24-08-20, 21:32, Bard Liao wrote:
> 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.

Applied, thanks

--
~Vinod