mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
ASoC: tegra186_asrc: mark runtime-pm functions as __maybe_unused
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: a2df8c2d5b ("ASoC: tegra: Add Tegra186 based ASRC driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/20220411020908.580-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
b1630fcbfd
commit
dc7680ca7a
|
|
@ -77,7 +77,7 @@ static void tegra186_asrc_lock_stream(struct tegra186_asrc *asrc,
|
|||
1);
|
||||
}
|
||||
|
||||
static int tegra186_asrc_runtime_suspend(struct device *dev)
|
||||
static int __maybe_unused tegra186_asrc_runtime_suspend(struct device *dev)
|
||||
{
|
||||
struct tegra186_asrc *asrc = dev_get_drvdata(dev);
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ static int tegra186_asrc_runtime_suspend(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int tegra186_asrc_runtime_resume(struct device *dev)
|
||||
static int __maybe_unused tegra186_asrc_runtime_resume(struct device *dev)
|
||||
{
|
||||
struct tegra186_asrc *asrc = dev_get_drvdata(dev);
|
||||
int id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user