Messages in this thread Patch in this message | | | Date | Mon, 10 May 2004 17:53:45 -0400 | From | Alan Cox <> | Subject | PATCH: Fix careless warning in io_apic for x86-64 |
| |
Fixes the warning
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.6/arch/x86_64/kernel/io_apic.c linux-2.6.6/arch/x86_64/kernel/io_apic.c --- linux.vanilla-2.6.6/arch/x86_64/kernel/io_apic.c 2004-05-10 03:32:37.000000000 +0100 +++ linux-2.6.6/arch/x86_64/kernel/io_apic.c 2004-05-10 19:06:06.000000000 +0100 @@ -228,6 +228,8 @@ void __init check_ioapic(void) { int num,slot,func; + u8 type; + if (ioapic_force) return; @@ -270,7 +272,7 @@ } /* No multi-function device? */ - u8 type = read_pci_config_byte(num,slot,func, + type = read_pci_config_byte(num,slot,func, PCI_HEADER_TYPE); if (!(type & 0x80)) break; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |