Commit 38b3ad56 authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent a1ac29bd
...@@ -1288,7 +1288,7 @@ void gserial_disconnect(struct gserial *gser) ...@@ -1288,7 +1288,7 @@ void gserial_disconnect(struct gserial *gser)
} }
EXPORT_SYMBOL_GPL(gserial_disconnect); EXPORT_SYMBOL_GPL(gserial_disconnect);
int userial_init(void) static int userial_init(void)
{ {
unsigned i; unsigned i;
int status; int status;
......
...@@ -63,7 +63,7 @@ static const char longname[] = "Gadget Zero"; ...@@ -63,7 +63,7 @@ static const char longname[] = "Gadget Zero";
static bool loopdefault = 0; static bool loopdefault = 0;
module_param(loopdefault, bool, S_IRUGO|S_IWUSR); 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_interval = 4,
.isoc_maxpacket = 1024, .isoc_maxpacket = 1024,
.bulk_buflen = 4096, .bulk_buflen = 4096,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment