]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
specialix: fix compiler warning on specialix_pci_tbl
authorNamhyung Kim <namhyung@gmail.com>
Tue, 7 Dec 2010 14:27:42 +0000 (23:27 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 10 Dec 2010 23:20:14 +0000 (15:20 -0800)
Annotate specialx_pci_tbl as '__used' to fix following warning:

  CC      drivers/char/specialix.o
drivers/char/specialix.c:2358: warning: ‘specialx_pci_tbl’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Roger Wolff <R.E.Wolff@BitWizard.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/specialix.c

index 9f8495b4fc8f5d648529d9c57950718bf11e8fd0..499bb0ffd8341e7d7f02591b75f389c29ac92e9e 100644 (file)
@@ -2356,7 +2356,7 @@ static void __exit specialix_exit_module(void)
        func_exit();
 }
 
-static struct pci_device_id specialx_pci_tbl[] __devinitdata = {
+static struct pci_device_id specialx_pci_tbl[] __devinitdata __used = {
        { PCI_DEVICE(PCI_VENDOR_ID_SPECIALIX, PCI_DEVICE_ID_SPECIALIX_IO8) },
        { }
 };