[patch] pci: type may be unused in pci_access_init()

From: David Rientjes
Date: Mon Apr 30 2007 - 10:36:48 EST


The automatic 'type' variable is unused in !CONFIG_PCI_DIRECT and
!CONFIG_PCI_MMCONFIG.

Cc: Greg Kroah-Hartman <gregkh@xxxxxxx>
Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
---
arch/i386/pci/init.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c
--- a/arch/i386/pci/init.c
+++ b/arch/i386/pci/init.c
@@ -6,7 +6,7 @@
in the right sequence from here. */
static __init int pci_access_init(void)
{
- int type = 0;
+ int type __attribute__((unused)) = 0;

#ifdef CONFIG_PCI_DIRECT
type = pci_direct_probe();
-
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/