diff options
author | David Rientjes <rientjes@google.com> | 2007-05-23 17:41:52 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-30 09:39:16 -0400 |
commit | 6c4b7e4fdf702136891f802bdf7ad52076594721 (patch) | |
tree | 13c48983f157ef3173c63a11f869a56c7d14df6d /drivers/scsi/gdth.c | |
parent | 2e91724658d5d6b5f10ad44c8742d7ec1f4833ed (diff) |
[SCSI] gdth: fix ambiguous gdthtable definition
Labeling a variable as __attribute_used__ is ambiguous: it means
__attribute__((unused)) for gcc <3.4 and __attribute__((used)) for gcc >=3.4.
There is no such thing as labeling a variable as __attribute__((used)). We
assume that we're simply suppressing a warning here if gdthtable[] is declared
but unreferenced.
Acked-by: Achim Leubner <achim_leubner@adaptec.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/gdth.c')
-rw-r--r-- | drivers/scsi/gdth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 60446b88f721..a4a825980817 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c | |||
@@ -876,7 +876,7 @@ static int __init gdth_search_pci(gdth_pci_str *pcistr) | |||
876 | /* Vortex only makes RAID controllers. | 876 | /* Vortex only makes RAID controllers. |
877 | * We do not really want to specify all 550 ids here, so wildcard match. | 877 | * We do not really want to specify all 550 ids here, so wildcard match. |
878 | */ | 878 | */ |
879 | static struct pci_device_id gdthtable[] __attribute_used__ = { | 879 | static struct pci_device_id gdthtable[] __maybe_unused = { |
880 | {PCI_VENDOR_ID_VORTEX,PCI_ANY_ID,PCI_ANY_ID, PCI_ANY_ID}, | 880 | {PCI_VENDOR_ID_VORTEX,PCI_ANY_ID,PCI_ANY_ID, PCI_ANY_ID}, |
881 | {PCI_VENDOR_ID_INTEL,PCI_DEVICE_ID_INTEL_SRC,PCI_ANY_ID,PCI_ANY_ID}, | 881 | {PCI_VENDOR_ID_INTEL,PCI_DEVICE_ID_INTEL_SRC,PCI_ANY_ID,PCI_ANY_ID}, |
882 | {PCI_VENDOR_ID_INTEL,PCI_DEVICE_ID_INTEL_SRC_XSCALE,PCI_ANY_ID,PCI_ANY_ID}, | 882 | {PCI_VENDOR_ID_INTEL,PCI_DEVICE_ID_INTEL_SRC_XSCALE,PCI_ANY_ID,PCI_ANY_ID}, |