usb: gadget: ss_ep_in_comp_desc can be static
authorkbuild test robot <fengguang.wu@intel.com>
Mon, 24 Nov 2014 14:31:23 +0000 (22:31 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 24 Nov 2014 14:33:23 +0000 (08:33 -0600)
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>
drivers/usb/gadget/legacy/printer.c

index e0cf1b0d471dd109db24c1efe67e40f40ca21ad3..90545980542f2c7c14e5f669444d012de5e73e26 100644 (file)
@@ -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,
 };
@@ -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,
 };