usb: gadget: fix two sparse warnings
authorFelipe Balbi <balbi@ti.com>
Fri, 18 Jan 2013 11:18:44 +0000 (13:18 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Jan 2013 18:52:49 +0000 (20:52 +0200)
drivers/usb/gadget/u_serial.c:1291:5: sparse: symbol \
'userial_init' was not declared. Should it be static?
drivers/usb/gadget/zero.c:66:25: sparse: symbol \
'gzero_options' was not declared. Should it be static?

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/u_serial.c
drivers/usb/gadget/zero.c

index ea360fda2e147757f1d145cf5cd2ff33d9a4d539..9e14079b63091f660c4502200ab98a0a418cda96 100644 (file)
@@ -1288,7 +1288,7 @@ void gserial_disconnect(struct gserial *gser)
 }
 EXPORT_SYMBOL_GPL(gserial_disconnect);
 
-int userial_init(void)
+static int userial_init(void)
 {
        unsigned                        i;
        int                             status;
index a331ab13f1e5f4ab130c3d87d13ea7c268c7de2a..685fa681cb6542abcea1f3b3fb02218201019551 100644 (file)
@@ -63,7 +63,7 @@ static const char longname[] = "Gadget Zero";
 static bool loopdefault = 0;
 module_param(loopdefault, bool, S_IRUGO|S_IWUSR);
 
-struct usb_zero_options gzero_options = {
+static struct usb_zero_options gzero_options = {
        .isoc_interval = 4,
        .isoc_maxpacket = 1024,
        .bulk_buflen = 4096,