Re: [PATCH] irq: rename irq_desc() to to_irq_desc() - fix #3

From: Ingo Molnar
Date: Mon Aug 18 2008 - 21:17:24 EST



* Yinghai Lu <yhlu.kernel@xxxxxxxxx> wrote:

> > - kstat_this_cpu.irqs[irq]++;
> > + kstat_irqs_this_cpu(&irq_desc[irq])++;
> >
> > out:
> > unspinning_lock(xl);
> >
>
> should be
>
> kstat_irqs_this_cpu(to_irq_desc(irq))++;
>
> otherwise when CONFIG_HAVE_SPARSE_IRQ is set, it will fail.
>
> when sparse_irq is set, only have irq_descX list...

ok, fixed it - updated patch below. Build testing just triggered it as
well.

Ingo

----------->