From: Felipe Balbi Date: Fri, 18 Jan 2013 11:18:44 +0000 (+0200) Subject: usb: gadget: fix two sparse warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=38b3ad5655e7b2ccb68e6510a84f839d0376fe05;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Felipe Balbi --- 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; 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"; 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,