Skip to content

Commit b191f01

Browse files
tiwaibroonie
authored andcommitted
ASoC: tegra: tegra186_dspk: Fix compile warning with CONFIG_PM=n
Fix trivial compile warnings wrt unused functions by adding __maybe_unused prefix: sound/soc/tegra/tegra186_dspk.c:74:12: warning: 'tegra186_dspk_runtime_suspend' defined but not used [-Wunused-function] sound/soc/tegra/tegra186_dspk.c:86:12: warning: 'tegra186_dspk_runtime_resume' defined but not used [-Wunused-function] Fixes: 327ef64 ("ASoC: tegra: Add Tegra186 based DSPK driver") Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ccff7bd commit b191f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/tegra/tegra186_dspk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static int tegra186_dspk_put_control(struct snd_kcontrol *kcontrol,
7171
return 0;
7272
}
7373

74-
static int tegra186_dspk_runtime_suspend(struct device *dev)
74+
static int __maybe_unused tegra186_dspk_runtime_suspend(struct device *dev)
7575
{
7676
struct tegra186_dspk *dspk = dev_get_drvdata(dev);
7777

@@ -83,7 +83,7 @@ static int tegra186_dspk_runtime_suspend(struct device *dev)
8383
return 0;
8484
}
8585

86-
static int tegra186_dspk_runtime_resume(struct device *dev)
86+
static int __maybe_unused tegra186_dspk_runtime_resume(struct device *dev)
8787
{
8888
struct tegra186_dspk *dspk = dev_get_drvdata(dev);
8989
int err;

0 commit comments

Comments
 (0)