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

From: Takashi Iwai
Date: Sun May 08 2022 - 05:11:20 EST


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@xxxxxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Cc: Takashi Iwai <tiwai@xxxxxxx>
> Cc: Jaroslav Kysela <perex@xxxxxxxx>
> Cc: alsa-devel@xxxxxxxxxxxxxxxx

Thanks, applied now.


Takashi