summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-12-07 23:27:42 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-10 15:20:14 -0800
commitfd0f5c54eeb66e3e89e3cdd34c5abf8d5fbcf61c (patch)
treec66a5f59de5d989998947593cd6f1c63144a7027
parent6835a209f6c24b3704aa58d8b558a513a5a08c52 (diff)
downloadlwn-fd0f5c54eeb66e3e89e3cdd34c5abf8d5fbcf61c.tar.gz
lwn-fd0f5c54eeb66e3e89e3cdd34c5abf8d5fbcf61c.zip
specialix: fix compiler warning on specialix_pci_tbl
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>
-rw-r--r--drivers/char/specialix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c
index 9f8495b4fc8f..499bb0ffd834 100644
--- a/drivers/char/specialix.c
+++ b/drivers/char/specialix.c
@@ -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) },
{ }
};