Bug#278413: Error in compiling kernel-source on MAC
reassign 278413 linux-2.6
thanks
On Tue, Oct 26, 2004 at 10:28:12PM +0200, Bernardi Giorgio wrote:
>
> Package: kernel-source
> Version: 2.6.8
>
> The problem is compiling the kernel-source using the attached config file:
>
> arch/ppc/syslib/open_pic.c: In function `openpic_mapirq':
> arch/ppc/syslib/open_pic.c:779: array index in non-array initializer
> arch/ppc/syslib/open_pic.c:779: (near initialization for `irqdest')
> arch/ppc/syslib/open_pic.c:779: warning: missing braces around initializer
> arch/ppc/syslib/open_pic.c:779: warning: (near initialization for
> `irqdest.bits')
> make[1]: *** [arch/ppc/syslib/open_pic.o] Error 1
> make: *** [arch/ppc/syslib] Error 2
>
> the fix:
>
> --- open_pic.c Mon Aug 30 11:16:07 2004
> +++ open_pic_mod.c Mon Aug 30 11:15:39 2004
> @@ -776,7 +776,7 @@
> if (ISR[irq] == 0)
> return;
> if (!cpus_empty(keepmask)) {
> - cpumask_t irqdest = { .bits[0] = openpic_read(&ISR[irq]->Destination) };
> + cpumask_t irqdest = { irqdest.bits[0] =
> openpic_read(&ISR[irq]->Destination) };
> cpus_and(irqdest, irqdest, keepmask);
> cpus_or(physmask, physmask, irqdest);
> }
Does this error still occur with more recent kernel versions?
Cheers,
Moritz
Reply to: