From: Jingoo Han Date: Mon, 16 Dec 2013 09:44:25 +0000 (+0900) Subject: usb: gadget: f_serial: Fix sparse warning X-Git-Tag: submit/tizen/20141121.110247~2696 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00a4afe37ead1642be0ec1454a2ef6cb34e5d498;p=platform%2Fkernel%2Flinux-3.10.git usb: gadget: f_serial: Fix sparse warning Make local symbol static in order to fix the following sparse warning. drivers/usb/gadget/f_serial.c:357:21: warning: symbol 'gser_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_serial.c b/drivers/usb/gadget/f_serial.c index 981113c..9ecbcbf 100644 --- a/drivers/usb/gadget/f_serial.c +++ b/drivers/usb/gadget/f_serial.c @@ -354,7 +354,7 @@ static void gser_unbind(struct usb_configuration *c, struct usb_function *f) usb_free_all_descriptors(f); } -struct usb_function *gser_alloc(struct usb_function_instance *fi) +static struct usb_function *gser_alloc(struct usb_function_instance *fi) { struct f_gser *gser; struct f_serial_opts *opts;