OSDN Git Service

usb: storage: cypress: fix sparse warning
authorFelipe Balbi <balbi@ti.com>
Tue, 15 Nov 2011 07:53:29 +0000 (09:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 18:20:47 +0000 (10:20 -0800)
Fix the following sparse warning:

| drivers/usb/storage/cypress_atacb.c:46:22: warning:
| symbol 'cypress_usb_ids' was not declared. Should
| it be static?

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/cypress_atacb.c

index c844718..740bfe6 100644 (file)
@@ -43,7 +43,7 @@ MODULE_LICENSE("GPL");
 { USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
   .driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
 
-struct usb_device_id cypress_usb_ids[] = {
+static struct usb_device_id cypress_usb_ids[] = {
 #      include "unusual_cypress.h"
        { }             /* Terminating entry */
 };