Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: f_uac1: Staticize local functions

control_selector_init() is used only in this file.
audio_bind_config() is used only in audio.c file to which
f_uac1.c is included. Thus, these functions are staticized
to fix the following warnings.

drivers/usb/gadget/f_uac1.c:698:12: warning: symbol 'control_selector_init' was not declared. Should it be static?
drivers/usb/gadget/f_uac1.c:722:12: warning: symbol 'audio_bind_config' was not declared. Should it be static?

Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Jingoo Han and committed by
Felipe Balbi
cf1dea73 2419831c

+2 -2
+2 -2
drivers/usb/gadget/f_uac1.c
··· 695 695 } 696 696 697 697 /* Todo: add more control selecotor dynamically */ 698 - int __init control_selector_init(struct f_audio *audio) 698 + static int __init control_selector_init(struct f_audio *audio) 699 699 { 700 700 INIT_LIST_HEAD(&audio->cs); 701 701 list_add(&feature_unit.list, &audio->cs); ··· 719 719 * 720 720 * Returns zero on success, else negative errno. 721 721 */ 722 - int __init audio_bind_config(struct usb_configuration *c) 722 + static int __init audio_bind_config(struct usb_configuration *c) 723 723 { 724 724 struct f_audio *audio; 725 725 int status;