[alsa-devel] [PATCH] ac97_patch: compilation warning fix
Takashi Iwai
tiwai at suse.de
Mon Oct 29 09:06:48 CET 2007
At Sun, 28 Oct 2007 17:20:44 +0100,
Krzysztof Helt wrote:
>
> From: Krzysztof Helt <krzysztof.h1 at wp.pl>
>
> This patch kills these two compilation warnings if
> power management is disabled:
>
> sound/pci/ac97/ac97_patch.h:86: warning: 'snd_ac97_restore_status'
> declared 'static' but never defined
> sound/pci/ac97/ac97_patch.h:87: warning: 'snd_ac97_restore_iec958'
> declared 'static' but never defined
>
> Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>
Thanks, applied to ALSA tree now.
Takashi
>
> ---
>
> The patch was done against kernel 2.6.24-rc1-git4.
>
> diff -urp linux-ref/sound/pci/ac97/ac97_patch.h linux-new/sound/pci/ac97/ac97_patch.h
> --- linux-ref/sound/pci/ac97/ac97_patch.h 2007-10-28 11:11:20.000000000 +0100
> +++ linux-new/sound/pci/ac97/ac97_patch.h 2007-10-28 12:46:34.000000000 +0100
> @@ -83,8 +83,10 @@ static int snd_ac97_swap_ctl(struct snd_
> const char *s2, const char *suffix);
> static void snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src,
> const char *dst);
> +#ifdef CONFIG_PM
> static void snd_ac97_restore_status(struct snd_ac97 *ac97);
> static void snd_ac97_restore_iec958(struct snd_ac97 *ac97);
> +#endif
> static int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol,
> struct snd_ctl_elem_info *uinfo);
> static int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol,
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
More information about the Alsa-devel
mailing list