From: Takashi Iwai <tiwai@suse.de>
To: Lukas Wunner <lukas@wunner.de>
Cc: alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org,
Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH] ALSA: hda - Silence PM ops build warning
Date: Thu, 29 Mar 2018 13:51:43 +0200 [thread overview]
Message-ID: <s5ha7urkskw.wl-tiwai@suse.de> (raw)
In-Reply-To: <b8e70e34a9acbd4f0a1a6c7673cea96888ae9503.1522323444.git.lukas@wunner.de>
On Thu, 29 Mar 2018 13:46:26 +0200,
Lukas Wunner wrote:
>
> The system sleep PM ops azx_suspend() and azx_resume() were previously
> called by vga_switcheroo, but commit 07f4f97d7b4b ("vga_switcheroo: Use
> device link for HDA controller") removed their invocation.
>
> Unfortunately the commit neglected to update the #ifdef surrounding the
> two functions, so if CONFIG_PM_SLEEP is *not* enabled but all three of
> CONFIG_PM, CONFIG_VGA_SWITCHEROO and CONFIG_SND_HDA_CODEC_HDMI *are*
> enabled, the compiler now emits the following warning:
>
> sound/pci/hda/hda_intel.c:1024:12: warning: 'azx_resume' defined but not used [-Wunused-function]
> static int azx_resume(struct device *dev)
> ^~~~~~~~~~
> sound/pci/hda/hda_intel.c:989:12: warning: 'azx_suspend' defined but not used [-Wunused-function]
> static int azx_suspend(struct device *dev)
> ^~~~~~~~~~~
>
> Silence by updating the #ifdef. Because the #ifdef block now uses the
> same condition as the one immediately succeeding it, the two blocks can
> be collapsed together, shaving off another two lines.
>
> Fixes: 07f4f97d7b4b ("vga_switcheroo: Use device link for HDA controller")
> Cc: Takashi Iwai <tiwai@suse.com>
> Reported-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Can this go through drm(-misc) tree as the original commit stays?
thanks,
Takashi
next prev parent reply other threads:[~2018-03-29 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 11:46 [PATCH] ALSA: hda - Silence PM ops build warning Lukas Wunner
2018-03-29 11:51 ` Takashi Iwai [this message]
2018-03-29 20:15 ` Lukas Wunner
2018-04-13 4:27 ` Lukas Wunner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5ha7urkskw.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=arnd@arndb.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=lukas@wunner.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox