[PATCH]io_apic.c: fix compile warning

From: Figo.zhang
Date: Wed Jun 17 2009 - 10:25:34 EST


fix compile warning:
arch/x86/kernel/apic/io_apic.c: In function âioapic_write_entryâ:
arch/x86/kernel/apic/io_apic.c:466: warning: âeuâ is used uninitialized in this function
arch/x86/kernel/apic/io_apic.c:465: note: âeuâ was declared here

Signed-off-by: Figo.zhang <figo1802@xxxxxxxxx>
---

arch/x86/kernel/apic/io_apic.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index ef8d929..e9ca066 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -462,7 +462,7 @@ static struct IO_APIC_route_entry ioapic_read_entry(int apic, int pin)
static void
__ioapic_write_entry(int apic, int pin, struct IO_APIC_route_entry e)
{
- union entry_union eu;
+ union entry_union eu = {{0,0}};
eu.entry = e;
io_apic_write(apic, 0x11 + 2*pin, eu.w2);
io_apic_write(apic, 0x10 + 2*pin, eu.w1);


--
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/