[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tkrat.b1c929dd899e625a@s5r6.in-berlin.de>
Date: Sun, 29 Oct 2006 22:04:17 +0100 (CET)
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Ingo Molnar <mingo@...hat.com>
cc: linux-kernel@...r.kernel.org
Subject: [PATCH 2.6.19-rc3] i386/io_apic: fix compiler warning in create_irq
Fix warning
arch/i386/kernel/io_apic.c: In function `create_irq':
arch/i386/kernel/io_apic.c:2420: warning: 'vector' might be used uninitialized in this function
Signed-off-by: Stefan Richter <stefanr@...6.in-berlin.de>
---
Only compile-tested.
arch/x86_64/kernel/io_apic.c seems to have the same initialization already.
Index: linux-2.6.19-rc3/arch/i386/kernel/io_apic.c
===================================================================
--- linux-2.6.19-rc3.orig/arch/i386/kernel/io_apic.c 2006-10-29 20:41:20.000000000 +0100
+++ linux-2.6.19-rc3/arch/i386/kernel/io_apic.c 2006-10-29 21:55:19.000000000 +0100
@@ -2421,6 +2421,7 @@ int create_irq(void)
unsigned long flags;
irq = -ENOSPC;
+ vector = 0;
spin_lock_irqsave(&vector_lock, flags);
for (new = (NR_IRQS - 1); new >= 0; new--) {
if (platform_legacy_irq(new))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists