diff options
author | Felipe Balbi <balbi@ti.com> | 2013-01-18 06:18:44 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-21 13:52:49 -0500 |
commit | 38b3ad5655e7b2ccb68e6510a84f839d0376fe05 (patch) | |
tree | 36c7ad21097e4adf91e22d0cb85eeceae5bcd72f | |
parent | a1ac29bd5d56c366e2fbefd7f9f8026e6808e4a8 (diff) |
usb: gadget: fix two sparse warnings
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>
-rw-r--r-- | drivers/usb/gadget/u_serial.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/zero.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c index ea360fda2e14..9e14079b6309 100644 --- a/drivers/usb/gadget/u_serial.c +++ b/drivers/usb/gadget/u_serial.c | |||
@@ -1288,7 +1288,7 @@ void gserial_disconnect(struct gserial *gser) | |||
1288 | } | 1288 | } |
1289 | EXPORT_SYMBOL_GPL(gserial_disconnect); | 1289 | EXPORT_SYMBOL_GPL(gserial_disconnect); |
1290 | 1290 | ||
1291 | int userial_init(void) | 1291 | static int userial_init(void) |
1292 | { | 1292 | { |
1293 | unsigned i; | 1293 | unsigned i; |
1294 | int status; | 1294 | int status; |
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index a331ab13f1e5..685fa681cb65 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
@@ -63,7 +63,7 @@ static const char longname[] = "Gadget Zero"; | |||
63 | static bool loopdefault = 0; | 63 | static bool loopdefault = 0; |
64 | module_param(loopdefault, bool, S_IRUGO|S_IWUSR); | 64 | module_param(loopdefault, bool, S_IRUGO|S_IWUSR); |
65 | 65 | ||
66 | struct usb_zero_options gzero_options = { | 66 | static struct usb_zero_options gzero_options = { |
67 | .isoc_interval = 4, | 67 | .isoc_interval = 4, |
68 | .isoc_maxpacket = 1024, | 68 | .isoc_maxpacket = 1024, |
69 | .bulk_buflen = 4096, | 69 | .bulk_buflen = 4096, |