usb: gadget: dummy: fix sparse warning
authorFelipe Balbi <balbi@ti.com>
Fri, 22 Mar 2013 14:50:47 +0000 (16:50 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 27 Mar 2013 11:18:58 +0000 (13:18 +0200)
fix the following sparse warning:

drivers/usb/gadget/dummy_hcd.c:1912:12: warning: symbol 'usb3_bos_desc' was not declared. Should it be static?

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/dummy_hcd.c

index ce751555f6ba0ca061e94beb5f907fd9275eee7c..a792e322f4f1b84c58e20538b48d1e7beea4082f 100644 (file)
@@ -1906,7 +1906,7 @@ done:
 }
 
 /* usb 3.0 root hub device descriptor */
-struct {
+static struct {
        struct usb_bos_descriptor bos;
        struct usb_ss_cap_descriptor ss_cap;
 } __packed usb3_bos_desc = {