mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
The InterWave PM patch added snd_interwave_restore_regs() and snd_interwave_restore_memory() as static helpers, but both are used only from the resume path under CONFIG_PM. On configurations without CONFIG_PM, such as alpha allyesconfig, this leaves both helpers unused and triggers -Wunused-function warnings with W=1. Move the PM-only helpers into the existing CONFIG_PM section. Keep __snd_interwave_restore_regs() outside the guard because it is also used during probe-time initialization. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202604101958.x16oNkfo-lkp@intel.com/ Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com> Link: https://patch.msgid.link/20260410-alsa-interwave-pm-warning-fix-v1-1-434d14c9c262@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
|---|---|---|
| .. | ||
| gus_dma.c | ||
| gus_dram.c | ||
| gus_io.c | ||
| gus_irq.c | ||
| gus_main.c | ||
| gus_mem_proc.c | ||
| gus_mem.c | ||
| gus_mixer.c | ||
| gus_pcm.c | ||
| gus_reset.c | ||
| gus_tables.h | ||
| gus_timer.c | ||
| gus_uart.c | ||
| gus_volume.c | ||
| gusclassic.c | ||
| gusextreme.c | ||
| gusmax.c | ||
| interwave-stb.c | ||
| interwave.c | ||
| Makefile | ||