summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_serial.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-01-18 12:18:44 +0100
committerFelipe Balbi <balbi@ti.com>2013-01-21 19:52:49 +0100
commit38b3ad5655e7b2ccb68e6510a84f839d0376fe05 (patch)
tree36c7ad21097e4adf91e22d0cb85eeceae5bcd72f /drivers/usb/gadget/u_serial.c
parentusb: gadget: f_uac2: fix compile warning (diff)
downloadlinux-38b3ad5655e7b2ccb68e6510a84f839d0376fe05.tar.xz
linux-38b3ad5655e7b2ccb68e6510a84f839d0376fe05.zip
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>
Diffstat (limited to 'drivers/usb/gadget/u_serial.c')
-rw-r--r--drivers/usb/gadget/u_serial.c2
1 files changed, 1 insertions, 1 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)
}
EXPORT_SYMBOL_GPL(gserial_disconnect);
-int userial_init(void)
+static int userial_init(void)
{
unsigned i;
int status;