From: Jingoo Han Date: Mon, 16 Dec 2013 09:44:07 +0000 (+0900) Subject: usb: gadget: f_phonet: Fix sparse warning X-Git-Tag: v3.14-rc1~148^2~90^2~37 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c3af8223d58787fb4279c8140f72873259964476;p=~emulex%2Finfiniband.git usb: gadget: f_phonet: Fix sparse warning Make local symbol static in order to fix the following sparse warning. drivers/usb/gadget/f_phonet.c:692:21: warning: symbol 'phonet_alloc' was not declared. Should it be static? Signed-off-by: Jingoo Han Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/f_phonet.c b/drivers/usb/gadget/f_phonet.c index eb3aa817a66..f2b781773ee 100644 --- a/drivers/usb/gadget/f_phonet.c +++ b/drivers/usb/gadget/f_phonet.c @@ -689,7 +689,7 @@ static void pn_unbind(struct usb_configuration *c, struct usb_function *f) usb_free_all_descriptors(f); } -struct usb_function *phonet_alloc(struct usb_function_instance *fi) +static struct usb_function *phonet_alloc(struct usb_function_instance *fi) { struct f_phonet *fp; struct f_phonet_opts *opts;