[PATCH] USB: whci-hcd: fix compiler warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Namhyung Kim
Date: Tuesday, November 30, 2010 - 9:28 pm

Annotate whci_hcd_id_table as '__used' to fix following warning:

  CC      drivers/usb/host/whci/hcd.o
drivers/usb/host/whci/hcd.c:359: warning: ‘whci_hcd_id_table’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 drivers/usb/host/whci/hcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/host/whci/hcd.c b/drivers/usb/host/whci/hcd.c
index 72b6892..9546f6c 100644
--- a/drivers/usb/host/whci/hcd.c
+++ b/drivers/usb/host/whci/hcd.c
@@ -356,7 +356,7 @@ static void __exit whci_hc_driver_exit(void)
 module_exit(whci_hc_driver_exit);
 
 /* PCI device ID's that we handle (so it gets loaded) */
-static struct pci_device_id whci_hcd_id_table[] = {
+static struct pci_device_id __used whci_hcd_id_table[] = {
 	{ PCI_DEVICE_CLASS(PCI_CLASS_WIRELESS_WHCI, ~0) },
 	{ /* empty last entry */ }
 };
-- 
1.7.0.4

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] USB: whci-hcd: fix compiler warning, Namhyung Kim, (Tue Nov 30, 9:28 pm)
Re: [PATCH] USB: whci-hcd: fix compiler warning, Namhyung Kim, (Wed Dec 1, 9:49 am)
Re: [PATCH] USB: whci-hcd: fix compiler warning, David Vrabel, (Wed Dec 1, 9:52 am)
Re: [PATCH] USB: whci-hcd: fix compiler warning, Namhyung Kim, (Wed Dec 1, 10:02 am)
Re: [PATCH] USB: whci-hcd: fix compiler warning, David Vrabel, (Wed Dec 1, 10:06 am)
Re: [PATCH] USB: whci-hcd: fix compiler warning, Namhyung Kim, (Wed Dec 1, 10:11 am)
Re: [PATCH] USB: whci-hcd: fix compiler warning, Greg KH, (Wed Dec 1, 10:36 am)
Re: [PATCH] USB: whci-hcd: fix compiler warning, Namhyung Kim, (Mon Dec 6, 6:05 am)
[PATCH RESEND] USB: whci-hcd: fix compiler warning, Namhyung Kim, (Mon Dec 6, 9:03 am)