Re: Parport irq detection problem in 2.1.62 (patch supplied.)

Philip Blundell (pb@nexus.co.uk)
Mon, 10 Nov 1997 11:40:10 +0000


>This solves the problem in a general way, but it makes the code GCC
>specific (not a problem IMHO):
>
>--- linux/drivers/misc/parport_pc.c.orig Mon Nov 10 09:57:49 1997
>+++ linux/drivers/misc/parport_pc.c Mon Nov 10 12:08:48 1997
>@@ -889,9 +889,9 @@
> }
>
> #ifdef MODULE
>-static int io[PC_MAX_PORTS+1] = { 0, };
>-static int dma[PC_MAX_PORTS] = { PARPORT_DMA_AUTO, };
>-static int irq[PC_MAX_PORTS] = { PARPORT_IRQ_AUTO, };
>+static int io[PC_MAX_PORTS+1] = { [0 ... PC_MAX_PORTS] = 0 };
>+static int dma[PC_MAX_PORTS] = { [0 ... PC_MAX_PORTS-1] = PARPORT_DMA_AUTO };
>+static int irq[PC_MAX_PORTS] = { [0 ... PC_MAX_PORTS-1] = PARPORT_IRQ_AUTO };

I think that's what we need. I'll apply the patch; thanks. There are GCC
extensions all over the kernel so it's no problem.

p.