diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-02-21 05:09:19 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-20 21:53:14 +0100 |
commit | 34371d236eab28933eefc0d77bd1e3df62fc585b (patch) | |
tree | 66a803dc0edbcd30db7ce640a0980e5634c8eba9 /sound | |
parent | 02ed051fe1fd2fc8dbafec23ddd4814936121650 (diff) | |
download | op-kernel-dev-34371d236eab28933eefc0d77bd1e3df62fc585b.zip op-kernel-dev-34371d236eab28933eefc0d77bd1e3df62fc585b.tar.gz |
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: 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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/mixer_us16x08.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer_us16x08.c b/sound/usb/mixer_us16x08.c index 019336f..7ac45ec 100644 --- a/sound/usb/mixer_us16x08.c +++ b/sound/usb/mixer_us16x08.c @@ -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); |