ALSA: usb-audio: localize function without external linkage
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 20 Feb 2017 20:09:19 +0000 (05:09 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Feb 2017 20:53:14 +0000 (21:53 +0100)
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: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_us16x08.c

index 019336f53acfc4387e92ee762cdc997f60c26782..7ac45ec372b904b40f4a31f192326655f9607e4d 100644 (file)
@@ -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);