lkml.org 
[lkml]   [2004]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: 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/
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.243 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site