Skip to content

Commit

Permalink
ALSA: ac97_patch make functions static
Browse files Browse the repository at this point in the history
Only used in ac97_codec by including ac97_patch.c directly, effectively static

Found by sparse:
sound/pci/ac97/ac97_patch.c:3551:5: warning: symbol 'patch_vt1617a' was not declared. Should it be static?
sound/pci/ac97/ac97_patch.c:3767:5: warning: symbol 'patch_vt1618' was not declared. Should it be static?

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Harvey Harrison authored and Jaroslav Kysela committed Sep 4, 2008
1 parent f4446ea commit b03671a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/ac97/ac97_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3548,7 +3548,7 @@ static const struct snd_kcontrol_new snd_ac97_controls_vt1617a[] = {
},
};

int patch_vt1617a(struct snd_ac97 * ac97)
static int patch_vt1617a(struct snd_ac97 * ac97)
{
int err = 0;
int val;
Expand Down Expand Up @@ -3764,7 +3764,7 @@ static const struct snd_kcontrol_new snd_ac97_controls_vt1618[] = {
}
};

int patch_vt1618(struct snd_ac97 *ac97)
static int patch_vt1618(struct snd_ac97 *ac97)
{
return patch_build_controls(ac97, snd_ac97_controls_vt1618,
ARRAY_SIZE(snd_ac97_controls_vt1618));
Expand Down

0 comments on commit b03671a

Please sign in to comment.