summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-16 18:44:25 +0900
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:43:28 +0900
commitafc6f622f6fdfeca22e92d66d1781ef9461512b7 (patch)
treed19414b6c3d0f7e80b02e04d26190e1d898a5a31 /drivers/usb
parent4ac820dc3c6e99f25025a4f545874662419167ad (diff)
downloadlinux-3.10-afc6f622f6fdfeca22e92d66d1781ef9461512b7.tar.gz
linux-3.10-afc6f622f6fdfeca22e92d66d1781ef9461512b7.tar.bz2
linux-3.10-afc6f622f6fdfeca22e92d66d1781ef9461512b7.zip
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 <jg1.han@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/f_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_serial.c b/drivers/usb/gadget/f_serial.c
index 981113c9924..9ecbcbf36a4 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;