Skip to content

Commit ccecefa

Browse files
arndbtiwai
authored andcommitted
ALSA: cs46xx: mark snd_cs46xx_download_image as static
snd_cs46xx_download_image() was originally called from dsp_spos.c, but is now local to cs46xx_lib.c. Mark it as 'static' to avoid a warning about it lacking a declaration, and '__maybe_unused' to avoid a warning about it being unused when CONFIG_SND_CS46XX_NEW_DSP is disabled: sound/pci/cs46xx/cs46xx_lib.c:534:5: error: no previous prototype for 'snd_cs46xx_download_image' Fixes: 89f157d ("[ALSA] cs46xx - Fix PM resume") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20230516195046.550584-1-arnd@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 3b44ec8 commit ccecefa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/pci/cs46xx/cs46xx_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ static int load_firmware(struct snd_cs46xx *chip)
531531
return err;
532532
}
533533

534-
int snd_cs46xx_download_image(struct snd_cs46xx *chip)
534+
static __maybe_unused int snd_cs46xx_download_image(struct snd_cs46xx *chip)
535535
{
536536
int idx, err;
537537
unsigned int offset = 0;

0 commit comments

Comments
 (0)