public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [uPATCH][Probably fucked up] arch/i386/kernel/io_apic.c: missing extern? (241p10)
@ 2001-01-26 21:13 Rasmus Andersen
  2001-01-26 23:06 ` Rasmus Andersen
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Andersen @ 2001-01-26 21:13 UTC (permalink / raw)
  To: linux-kernel

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):


--- linux-ac11-clean/arch/i386/kernel/io_apic.c	Thu Jan 25 20:48:51 2001
+++ linux-ac11/arch/i386/kernel/io_apic.c	Fri Jan 26 21:59:16 2001
@@ -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

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uPATCH][Probably fucked up] arch/i386/kernel/io_apic.c: missing extern? (241p10)
  2001-01-26 21:13 [uPATCH][Probably fucked up] arch/i386/kernel/io_apic.c: missing extern? (241p10) Rasmus Andersen
@ 2001-01-26 23:06 ` Rasmus Andersen
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus Andersen @ 2001-01-26 23:06 UTC (permalink / raw)
  To: linux-kernel

On Fri, Jan 26, 2001 at 10:13:35PM +0100, Rasmus Andersen wrote:
> Hi.
[...]
> 
> 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?

--- linux-ac11-clean/arch/i386/kernel/mpparse.c	Thu Jan 25 20:48:51 2001
+++ linux-ac11/arch/i386/kernel/mpparse.c	Fri Jan 26 23:33:31 2001
@@ -48,8 +48,6 @@
 /* MP IRQ source entries */
 int mp_irq_entries;
 
-int nr_ioapics;
-
 int pic_mode;
 unsigned long mp_lapic_addr;
 
-- 
        Rasmus(rasmus@jaquet.dk)

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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-26 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-26 21:13 [uPATCH][Probably fucked up] arch/i386/kernel/io_apic.c: missing extern? (241p10) Rasmus Andersen
2001-01-26 23:06 ` Rasmus Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox