Skip to content

Commit

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

0 comments on commit 6835a20

Please sign in to comment.