* [PARISC] kernel 2.5.58 doesn't compile
@ 2003-01-16 17:24 Rolf Eike Beer
0 siblings, 0 replies; 2+ messages in thread
From: Rolf Eike Beer @ 2003-01-16 17:24 UTC (permalink / raw)
To: linux-kernel; +Cc: submit
First problem:
arch/parisc/kernel/irq.c: In function `show_interrupts':
arch/parisc/kernel/irq.c:254: subscripted value is neither array nor pointer
arch/parisc/kernel/irq.c: In function `do_irq':
arch/parisc/kernel/irq.c:391: subscripted value is neither array nor pointer
I hope this fixes this, I looked on the other arch's irq.c and did the
following patch. But be careful, this is just looking 10 lines of code up and
down. It is completely untested!
--- arch/parisc/kernel/irq.c.orig Wed Jan 15 17:18:19 2003
+++ arch/parisc/kernel/irq.c Wed Jan 15 17:20:27 2003
@@ -251,7 +251,7 @@
#ifdef CONFIG_SMP
for (; j < NR_CPUS; j++)
#endif
- seq_printf(p, "%10u ", kstat_cpu(j).irqs[regnr][irq_no]);
+ seq_printf(p, "%10u ", kstat_cpu(j).irqs[irq_no]);
seq_printf(p, " %14s",
region->data.name ? region->data.name : "N/A");
@@ -388,7 +388,7 @@
int cpu = smp_processor_id();
irq_enter();
- ++kstat_cpu(cpu).irqs[IRQ_REGION(irq)][IRQ_OFFSET(irq)];
+ ++kstat_cpu(cpu).irqs[irq];
DBG_IRQ(irq, ("do_irq(%d) %d+%d\n", irq, IRQ_REGION(irq), IRQ_OFFSET(irq)));
At least it compiles. But then this happens:
arch/parisc/kernel/module.c: In function `apply_relocate_add':
arch/parisc/kernel/module.c:131: `R_PARISC_PLABEL32' undeclared (first use in this function)
arch/parisc/kernel/module.c:131: (Each undeclared identifier is reported only once
arch/parisc/kernel/module.c:131: for each function it appears in.)
arch/parisc/kernel/module.c:135: `R_PARISC_DIR32' undeclared (first use in this function)
arch/parisc/kernel/module.c:139: `R_PARISC_DIR21L' undeclared (first use in this function)
arch/parisc/kernel/module.c:143: `R_PARISC_DIR14R' undeclared (first use in this function)
arch/parisc/kernel/module.c:147: `R_PARISC_SEGREL32' undeclared (first use in this function)
arch/parisc/kernel/module.c:151: `R_PARISC_DPREL21L' undeclared (first use in this function)
arch/parisc/kernel/module.c:155: `R_PARISC_DPREL14R' undeclared (first use in this function)
arch/parisc/kernel/module.c:159: `R_PARISC_PCREL17F' undeclared (first use in this function)
arch/parisc/kernel/module.c:163: `R_PARISC_PCREL22F' undeclared (first use in this function)
arch/parisc/kernel/module.c:170: warning: long long unsigned int format, different type arg (arg 3)
I've grepped a lot, but there are no definitions of this anywhere in the
kernel source. The only ones I found are in a libc header file modified by
Eric Biederman and included in kexec-tools. But they also do not define
R_PARISC_PLABEL32. Looks like anyone missed a file, module.c is new
in 2.5.5?.
Eike
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PARISC] kernel 2.5.58 doesn't compile
@ 2003-01-16 17:45 James Bottomley
0 siblings, 0 replies; 2+ messages in thread
From: James Bottomley @ 2003-01-16 17:45 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: James.Bottomley, linux-kernel
The vanilla linux kernel doesn't compile for PA-RISC. This is because, like
most non-x86 archs, development is done in a source repository stored
elsewhere and sync'd with the main trunk at appropriate times.
You need the patches from
http://ftp.parisc-linux.org/2.5/kernel-src/
There's also FAQs and Mailing lists appropriate to PA-RISC at
http://www.parisc-linux.org
James
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-16 17:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16 17:24 [PARISC] kernel 2.5.58 doesn't compile Rolf Eike Beer
-- strict thread matches above, loose matches on Subject: below --
2003-01-16 17:45 James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox