summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-12-07 23:27:41 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-10 15:20:14 -0800
commit6835a209f6c24b3704aa58d8b558a513a5a08c52 (patch)
treec502ff85e4e6a739884fa40f484e581c07b158e4 /drivers/char
parenta3ae0fc34f58e7163b7724feb3d77aa4603f0dc3 (diff)
downloadlinux-6835a209f6c24b3704aa58d8b558a513a5a08c52.tar.bz2
rocket: fix compiler warning on rocket_pci_ids
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/rocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index 86308830ac42..3e4e73a0d7c1 100644
--- a/drivers/char/rocket.c
+++ b/drivers/char/rocket.c
@@ -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) },
{ }
};