Skip to content

Commit

Permalink
specialix: fix compiler warning on specialix_pci_tbl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namhyung Kim authored and Greg Kroah-Hartman committed Dec 10, 2010
1 parent 6835a20 commit fd0f5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/specialix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
{ }
};
Expand Down

0 comments on commit fd0f5c5

Please sign in to comment.