[PATCH] find_isa_irq_pin should not be __init

From: Zwane Mwaikambo
Date: Mon Aug 23 2004 - 17:55:57 EST


find_isa_irq_pin should not be __init now, i'm surprised this one didn't
bite you Eric...

Signed-off-by: Zwane Mwaikambo <zwane@xxxxxxxxxxxxx>

Restarting system.
Unable to handle kernel paging request at virtual address c07bdfb0
printing eip:
c07bdfb0
*pde = 00843027
Oops: 0000 [#1]
PREEMPT SMP DEBUG_PAGEALLOC
Modules linked in:
CPU: 0
EIP: 0060:[<c07bdfb0>] Not tainted VLI
EFLAGS: 00010246 (2.6.8.1-mm4)
EIP is at find_isa_irq_pin+0x0/0x70
eax: 00000001 ebx: 00000000 ecx: 00000000 edx: 00000017
esi: 01234567 edi: e842e000 ebp: e842fe88 esp: e842fe60
ds: 007b es: 007b ss: 0068
Process reboot (pid: 6024, threadinfo=e842e000 task=d18eea30)
Stack: c011bc27 00000000 00000003 00000001 00000000 e842fe88 c0118286 00000000
01234567 e842e000 e842fe94 c01182b9 00000000 e842ffbc c01376c1 00000000
c0650a79 c080aac4 00000001 00000000 00000000 e842fee4 c0155212 c1506020
Call Trace:
[<c01089a5>] show_stack+0x75/0x90
[<c0108b05>] show_registers+0x125/0x190
[<c0108d09>] die+0x109/0x1f0
[<c011d8a0>] do_page_fault+0x230/0x5b2
[<c010856d>] error_code+0x2d/0x40
[<c01182b9>] machine_restart+0x9/0x70
[<c01376c1>] sys_reboot+0x151/0x3b0
[<c01073e9>] sysenter_past_esp+0x52/0x79
Code: Bad EIP value.

Index: linux-2.6.8.1-mm4/arch/i386/kernel/io_apic.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.8.1-mm4/arch/i386/kernel/io_apic.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 io_apic.c
--- linux-2.6.8.1-mm4/arch/i386/kernel/io_apic.c 23 Aug 2004 08:23:22 -0000 1.1.1.1
+++ linux-2.6.8.1-mm4/arch/i386/kernel/io_apic.c 23 Aug 2004 22:46:09 -0000
@@ -747,7 +747,7 @@ static int __init find_irq_entry(int api
/*
* Find the pin to which IRQ[irq] (ISA) is connected
*/
-static int __init find_isa_irq_pin(int irq, int type)
+static int find_isa_irq_pin(int irq, int type)
{
int i;

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