rocket: fix compiler warning on rocket_pci_ids
authorNamhyung Kim <namhyung@gmail.com>
Tue, 7 Dec 2010 14:27:41 +0000 (23:27 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 10 Dec 2010 23:20:14 +0000 (15:20 -0800)
Annotate rocket_pci_ids as '__used' to fix following warning:

  CC      drivers/char/rocket.o
drivers/char/rocket.c:1767: warning: ‘rocket_pci_ids’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/rocket.c

index 8630883..3e4e73a 100644 (file)
@@ -1764,7 +1764,7 @@ static void rp_flush_buffer(struct tty_struct *tty)
 
 #ifdef CONFIG_PCI
 
-static struct pci_device_id __devinitdata rocket_pci_ids[] = {
+static struct pci_device_id __devinitdata __used rocket_pci_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_ANY_ID) },
        { }
 };