Compilation issue on 2.6.13-rc2
In trying to build 2.6.13-rc2 on an SMP Blade 1000, I get the following error;
CC arch/sparc64/kernel/irq.oarch/sparc64/kernel/irq.c: In function `irq_affinity_read_proc':arch/sparc64/kernel/irq.c:920: warning: initialization from incompatible pointer type make[1]: *** [arch/sparc64/kernel/irq.o] Error 1
make: *** [arch/sparc64/kernel] Error 2
One thing to note is that this only manifests itself in an SMP enabled kernel config, single processor does not throw it.
Signature · 2 lines
Jason Wever Gentoo/Sparc Team Co-Lead
From: Jason Wever <[email protected]>
Date: Sat, 9 Jul 2005 09:01:26 -0600
Quoted 11 lines
In trying to build 2.6.13-rc2 on an SMP Blade 1000, I get the following error;
CC
arch/sparc64/kernel/irq.oarch/sparc64/kernel/irq.c: In function `irq_affinity_read_proc':arch/sparc64/kernel/irq.c:920: warning: initialization from incompatible pointer type make[1]: *** [arch/sparc64/kernel/irq.o] Error 1
make: *** [arch/sparc64/kernel] Error 2One thing to note is that this only manifests itself in an SMP enabled kernel config, single processor does not throw it.
It's fixed in Linu's GIT tree as of two days ago, as follows.
12cf649f417c68b6bdd2a3b4ed97113159c6029e
arch/sparc64/kernel/irq.c +5 -2
@@ -917,7 +917,8 @@ static int irq_affinity_read_proc (char int count, int *eof, void *data) { struct ino_bucket *bp = ivector_table + (long)data; -struct irqaction *ap = bp->irq_info; +struct irq_desc *desc = bp->irq_info; +struct irqaction *ap = desc->action;cpumask_t mask;int len;
@@ -935,11 +936,13 @@ static int irq_affinity_read_proc (charstatic inline void set_intr_affinity (int irq,cpumask_t hw_aff) {struct ino_bucket *bp = ivector_table + irq; +struct irq_desc *desc = bp->irq_info; +struct irqaction *ap = desc->action;/* Users specify affinity in terms of hw cpu ids. * As soon as we do this, handler_irq() might see and take action. */ -put_smpaff_in_irqaction ((struct irqaction *)bp->irq_info, hw_aff); +put_smpaff_in_irqaction (ap, hw_aff);/* Migration is simply done by the next cpu to service this * interrupt.
Quoted 1 line · On Sat, 09 Jul 2005 17:11:04 -0700 (PDT) "David S. Miller"…
It's fixed in Linu's GIT tree as of two days ago, as follows.
Ah OK thanks. I tried downloading the git2 patch to 2.6.13-rc2 this morning but it was consistantly showing up as empty on kernel.org's website.
Signature · 2 lines
Jason Wever Gentoo/Sparc Team Co-Lead