[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200826084635.GX2639@vkoul-mobl>
Date: Wed, 26 Aug 2020 14:16:35 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Bard Liao <yung-chuan.liao@...ux.intel.com>
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
tiwai@...e.de, broonie@...nel.org, gregkh@...uxfoundation.org,
jank@...ence.com, srinivas.kandagatla@...aro.org,
rander.wang@...ux.intel.com, ranjani.sridharan@...ux.intel.com,
hui.wang@...onical.com, pierre-louis.bossart@...ux.intel.com,
sanyog.r.kale@...el.com, mengdong.lin@...el.com,
bard.liao@...el.com
Subject: Re: [PATCH v2] soundwire: intel: fix intel_suspend/resume defined
but not used warning
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
Powered by blists - more mailing lists