26 Aug
2020
26 Aug
'20
10:46 a.m.
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