arch/i386/kernel/io_apic.c: missing extern? (241p10)
Hi.
In arch/i386/kernel we declare nr_ioapics in both io_apic.c and mpparse.c. I guess that one of them should be an 'extern' declaration? In the patch below I have guessed that it is io_apic.c that is missing it since (AFAICS) never assign to nr_ioapic in this file.
But I am in way over my head here so please be gentle when you point out my mistake.
The patch (against 241p10 and ac11):
arch/i386/kernel/io_apic.c +1 -1
@@ -38,7 +38,7 @@/* * # of IRQ routing registers */ -int nr_ioapics; +extern int nr_ioapics;int nr_ioapic_registers[MAX_IO_APICS ];#if CONFIG_SMP
Signature · 9 lines
Regards,
Rasmus([email protected])
Freedom of the press is limited to those who own one.
- A.J. Liebling
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/Quoted 1 line · Rasmus Andersen
Hi.
[...]
Quoted 4 lines
But I am in way over my head here so please be gentle when you point out my mistake.
Already someone did :) I was too sloppy in checking my facts; it is only -ac11 that has the 'int nr_ioapics;' in mpparse.c. As mpparse.c includes <mpspec.h> (where nr_ioapics is defined as an extern int) I will risk another patch removing the declaration from mpparse.c (in ac11). My original patch should just be silently ignored, thank you ;)
Thanks goes to Manfred Spraul who pointed out the salient facts that I had blithely ignored. Like, all of them :/ And my apologies for the brief confusion I might have caused in people looking in 241p10 for my phantom declaration.
This patch is only against ac11. It has been compile-tested with SMP turned on.
Comments?
arch/i386/kernel/mpparse.c +0 -2
@@ -48,8 +48,6 @@/* MP IRQ source entries */ int mp_irq_entries; -int nr_ioapics; -int pic_mode;unsigned long mp_lapic_addr;
Signature · 9 lines
Rasmus([email protected]) A file that big? It might be very useful. But now it is gone. --- Error messages in haiku - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/