[PATCH 2/3] [SCSI] fdomain: fix compiler warning on fdomain_pci_tbl

From: Namhyung Kim
Date: Tue Dec 07 2010 - 10:32:00 EST


Annotate fdomain_pci_tbl as '__used' to fix following warning:

CC drivers/scsi/fdomain.o
drivers/scsi/fdomain.c:1775: warning: âfdomain_pci_tblâ defined but not used

Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
Cc: Rik Faith <faith@xxxxxxxxxx>
---
drivers/scsi/fdomain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index 69b7aa5..974c0d9 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -1772,7 +1772,7 @@ struct scsi_host_template fdomain_driver_template = {
#ifndef PCMCIA
#ifdef CONFIG_PCI

-static struct pci_device_id fdomain_pci_tbl[] __devinitdata = {
+static struct pci_device_id fdomain_pci_tbl[] __devinitdata __used = {
{ PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
{ }
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/