Re: irqnr fallout in gpiolib on sparc32

From: KOSAKI Motohiro
Date: Tue Jan 06 2009 - 18:43:53 EST


> > #ifndef CONFIG_GENERIC_HARDIRQS
> > #include <asm/irq.h>
> > -# define nr_irqs NR_IRQS
> > +
> > +/*
> > + * Wrappers for non-genirq architectures:
> > + */
> > +#define nr_irqs NR_IRQS
> > +#define irq_to_desc(irq) irq_desc[irq]
>
> irq_to_desc(irq) return a pointer to a struct irq_desc
> so we need to take the address.
>
> > +#define irq_to_desc(irq) &irq_desc[irq]
> ^
> With this small fix the build continues.

maybe my fault.
very thanks.



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