mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] rocket: fix compiler warning on rocket_pci_ids
@ 2010-12-07 14:27 Namhyung Kim
  2010-12-07 14:27 ` [PATCH 2/3] specialix: fix compiler warning on specialix_pci_tbl Namhyung Kim
  2010-12-07 14:27 ` [PATCH 3/3] ip2: fix compiler warning on ip2main_pci_tbl Namhyung Kim
  0 siblings, 2 replies; 3+ messages in thread
From: Namhyung Kim @ 2010-12-07 14:27 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

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>
---
 drivers/char/rocket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index 8630883..3e4e73a 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) },
 	{ }
 };
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-07 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-07 14:27 [PATCH 1/3] rocket: fix compiler warning on rocket_pci_ids Namhyung Kim
2010-12-07 14:27 ` [PATCH 2/3] specialix: fix compiler warning on specialix_pci_tbl Namhyung Kim
2010-12-07 14:27 ` [PATCH 3/3] ip2: fix compiler warning on ip2main_pci_tbl Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®