[PATCH -next] ASoC: tegra186_asrc: mark runtime-pm functions as __maybe_unused
Sameer Pujar
spujar at nvidia.com
Mon Apr 11 10:21:31 CEST 2022
On 11-04-2022 07:39, YueHaibing wrote:
> sound/soc/tegra/tegra186_asrc.c:90:12: error: ‘tegra186_asrc_runtime_resume’ defined but not used [-Werror=unused-function]
> static int tegra186_asrc_runtime_resume(struct device *dev)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> sound/soc/tegra/tegra186_asrc.c:80:12: error: ‘tegra186_asrc_runtime_suspend’ defined but not used [-Werror=unused-function]
> static int tegra186_asrc_runtime_suspend(struct device *dev)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Mark these functions as __maybe_unused to avoid this kind of warning.
>
> Fixes: a2df8c2d5b36 ("ASoC: tegra: Add Tegra186 based ASRC driver")
> Signed-off-by: YueHaibing <yuehaibing at huawei.com>
> ---
> sound/soc/tegra/tegra186_asrc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks for the patch.
Reviewed-by: Sameer Pujar <spujar at nvidia.com>
More information about the Alsa-devel
mailing list