Skip to content

Commit

Permalink
usb: gadget: fix two sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi committed Jan 21, 2013
1 parent a1ac29b commit 38b3ad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/u_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 38b3ad5

Please sign in to comment.