Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1575763

Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused

From Takashi Iwai <tiwai@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused
Date 2017-02-07 15:20 +0100
Message-ID <t8eMG-3Xq-11@gated-at.bofh.it> (permalink)
References <t8ejE-3wo-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 07 Feb 2017 14:38:51 +0100,
Arnd Bergmann wrote:
> 
> 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>

Applied, thanks!


Takashi

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused Arnd Bergmann <arnd@arndb.de> - 2017-02-07 14:50 +0100
  Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused Takashi Iwai <tiwai@suse.de> - 2017-02-07 15:20 +0100
  Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as  __maybe_unused Takashi Sakamoto <o-takashi@sakamocchi.jp> - 2017-02-07 15:30 +0100
    Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused Takashi Iwai <tiwai@suse.de> - 2017-02-07 16:20 +0100

csiph-web