Skip to content

Commit 34371d2

Browse files
takaswietiwai
authored andcommitted
ALSA: usb-audio: localize function without external linkage
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]>
1 parent 02ed051 commit 34371d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/mixer_us16x08.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ static struct snd_us16x08_eq_store *snd_us16x08_create_eq_store(void)
10401040
return tmp;
10411041
}
10421042

1043-
struct snd_us16x08_meter_store *snd_us16x08_create_meter_store(void)
1043+
static struct snd_us16x08_meter_store *snd_us16x08_create_meter_store(void)
10441044
{
10451045
struct snd_us16x08_meter_store *tmp =
10461046
kzalloc(sizeof(struct snd_us16x08_meter_store), GFP_KERNEL);

0 commit comments

Comments
 (0)