summaryrefslogtreecommitdiffstats
path: root/sound/x86
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-02-07 08:38:51 -0500
committerTakashi Iwai <tiwai@suse.de>2017-02-07 09:05:50 -0500
commit1df989242d3d790aec79e72d12874bf763c958e1 (patch)
tree307b40c65f8eaccd8f01ce555743d3c5b8790c92 /sound/x86
parent873ab035752e62a90eaeb1daf88a44dad1da6ea0 (diff)
ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused
The two functions are unused when CONFIG_PM_SLEEP is disabled: sound/x86/intel_hdmi_audio.c:1633:12: error: 'hdmi_lpe_audio_resume' defined but not used [-Werror=unused-function] sound/x86/intel_hdmi_audio.c:1622:12: error: 'hdmi_lpe_audio_suspend' defined but not used [-Werror=unused-function] Marking them as __maybe_unused avoids the warning without introducing an ugly #ifdef. Fixes: 182cdf23dbf6 ("ALSA: x86: Implement runtime PM") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/x86')
-rw-r--r--sound/x86/intel_hdmi_audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/x86/intel_hdmi_audio.c b/sound/x86/intel_hdmi_audio.c
index dd7944c5ebc2..1022aaa005c4 100644
--- a/sound/x86/intel_hdmi_audio.c
+++ b/sound/x86/intel_hdmi_audio.c
@@ -1613,7 +1613,7 @@ static int hdmi_lpe_audio_runtime_suspend(struct device *dev)
1613 return 0; 1613 return 0;
1614} 1614}
1615 1615
1616static int hdmi_lpe_audio_suspend(struct device *dev) 1616static int __maybe_unused hdmi_lpe_audio_suspend(struct device *dev)
1617{ 1617{
1618 struct snd_intelhad *ctx = dev_get_drvdata(dev); 1618 struct snd_intelhad *ctx = dev_get_drvdata(dev);
1619 int err; 1619 int err;
@@ -1624,7 +1624,7 @@ static int hdmi_lpe_audio_suspend(struct device *dev)
1624 return err; 1624 return err;
1625} 1625}
1626 1626
1627static int hdmi_lpe_audio_resume(struct device *dev) 1627static int __maybe_unused hdmi_lpe_audio_resume(struct device *dev)
1628{ 1628{
1629 struct snd_intelhad *ctx = dev_get_drvdata(dev); 1629 struct snd_intelhad *ctx = dev_get_drvdata(dev);
1630 1630