]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: tegra: tegra186_dspk: Fix compile warning with CONFIG_PM=n
authorTakashi Iwai <tiwai@suse.de>
Mon, 3 Aug 2020 14:18:46 +0000 (16:18 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 3 Aug 2020 15:17:04 +0000 (16:17 +0100)
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: d14cdadbcfe3 ("ASoC: tegra: Add Tegra186 based DSPK driver")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200803141850.23713-2-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra186_dspk.c

index fe7117171a0e7a0441454efeef639c2b28498c84..0cbe31e2c7e9c4cc14a2d4ddc4fee6cd4acc648a 100644 (file)
@@ -71,7 +71,7 @@ static int tegra186_dspk_put_control(struct snd_kcontrol *kcontrol,
        return 0;
 }
 
-static int tegra186_dspk_runtime_suspend(struct device *dev)
+static int __maybe_unused tegra186_dspk_runtime_suspend(struct device *dev)
 {
        struct tegra186_dspk *dspk = dev_get_drvdata(dev);
 
@@ -83,7 +83,7 @@ static int tegra186_dspk_runtime_suspend(struct device *dev)
        return 0;
 }
 
-static int tegra186_dspk_runtime_resume(struct device *dev)
+static int __maybe_unused tegra186_dspk_runtime_resume(struct device *dev)
 {
        struct tegra186_dspk *dspk = dev_get_drvdata(dev);
        int err;