]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Feb 2017 13:38:51 +0000 (14:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Feb 2017 14:05:50 +0000 (15:05 +0100)
commit84e6951225b0dfd111ee4451f9da88c3272fafeb
tree307b40c65f8eaccd8f01ce555743d3c5b8790c92
parent2a265cfb25192e9276cd762186cae6529a26a949
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: 5b45c5601840 ("ALSA: x86: Implement runtime PM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c