[PATCH] ALSA: hda - fix unused Realtek function when PM is not enabled

Takashi Iwai tiwai at suse.de
Sun May 8 11:11:13 CEST 2022


On Sat, 30 Apr 2022 21:33:18 +0200,
Randy Dunlap wrote:
> 
> When CONFIG_PM is not enabled, alc_shutup() is not needed,
> so move it inside the #ifdef CONFIG_PM guard.
> Also drop some contiguous #endif / #ifdef CONFIG_PM for simplicity.
> 
> Fixes this build warning:
> sound/pci/hda/patch_realtek.c:886:20: warning: unused function 'alc_shutup'
> 
> Fixes: 08c189f2c552 ("ALSA: hda - Use generic parser codes for Realtek driver")
> Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
> Reported-by: kernel test robot <lkp at intel.com>
> Cc: Takashi Iwai <tiwai at suse.de>
> Cc: Jaroslav Kysela <perex at perex.cz>
> Cc: alsa-devel at alsa-project.org

Thanks, applied now.


Takashi


More information about the Alsa-devel mailing list