From: David Rientjes Date: Wed, 2 May 2007 17:27:22 +0000 (+0200) Subject: [PATCH] i386: type may be unused X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a3193348d407baaa7aef79decfa0e9a7fef74a17;p=deliverable%2Flinux.git [PATCH] i386: type may be unused In the case of !CONFIG_PCI_DIRECT && !CONFIG_PCI_MMCONFIG, type is unreferened. Cc: Andi Kleen Signed-off-by: David Rientjes Signed-off-by: Andi Kleen --- diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c index b21b6da8ab1d..1cf11af96de2 100644 --- 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();