Skip to content

Commit

Permalink
ALSA: usb-audio: localize function without external linkage
Browse files Browse the repository at this point in the history
When accessed inner a file, functions should have static qualifier for
local-linkage.

This commit fixes the bug. Sparse generated below warning.

sound/usb/mixer_us16x08.c:1043:32: warning: symbol 'snd_us16x08_create_meter_store' was not declared. Should it be static?

Fixes: d2bb390 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
Signed-off-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
takaswie authored and tiwai committed Feb 20, 2017
1 parent 02ed051 commit 34371d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/mixer_us16x08.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ static struct snd_us16x08_eq_store *snd_us16x08_create_eq_store(void)
return tmp;
}

struct snd_us16x08_meter_store *snd_us16x08_create_meter_store(void)
static struct snd_us16x08_meter_store *snd_us16x08_create_meter_store(void)
{
struct snd_us16x08_meter_store *tmp =
kzalloc(sizeof(struct snd_us16x08_meter_store), GFP_KERNEL);
Expand Down

0 comments on commit 34371d2

Please sign in to comment.