Skip to content

Commit

Permalink
usb: gadget: ss_ep_in_comp_desc can be static
Browse files Browse the repository at this point in the history
drivers/usb/gadget/legacy/printer.c:222:34: sparse: symbol 'ss_ep_in_comp_desc' was not declared. Should it be static?
drivers/usb/gadget/legacy/printer.c:234:34: sparse: symbol 'ss_ep_out_comp_desc' was not declared. Should it be static?

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
kbuild test robot authored and Felipe Balbi committed Nov 24, 2014
1 parent 7b0f000 commit ef24d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/legacy/printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static struct usb_endpoint_descriptor ss_ep_in_desc = {
.wMaxPacketSize = cpu_to_le16(1024),
};

struct usb_ss_ep_comp_descriptor ss_ep_in_comp_desc = {
static struct usb_ss_ep_comp_descriptor ss_ep_in_comp_desc = {
.bLength = sizeof(ss_ep_in_comp_desc),
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
};
Expand All @@ -231,7 +231,7 @@ static struct usb_endpoint_descriptor ss_ep_out_desc = {
.wMaxPacketSize = cpu_to_le16(1024),
};

struct usb_ss_ep_comp_descriptor ss_ep_out_comp_desc = {
static struct usb_ss_ep_comp_descriptor ss_ep_out_comp_desc = {
.bLength = sizeof(ss_ep_out_comp_desc),
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
};
Expand Down

0 comments on commit ef24d74

Please sign in to comment.