From: Arve Hjønnevåg Date: Tue, 27 Nov 2012 00:23:33 +0000 (-0800) Subject: ARM: fiq_debugger: Fix to compile on 3.7 X-Git-Tag: firefly_0821_release~4090^2~542 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4c1faac6acafcd8a59106d41efd2f0cf65a2181c;p=firefly-linux-kernel-4.4.55.git ARM: fiq_debugger: Fix to compile on 3.7 Use for_each_irq_desc in arch/arm/common/fiq_debugger.c Signed-off-by: Arve Hjønnevåg --- diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c index 053680b6c326..5e9005bfdbb9 100644 --- a/arch/arm/common/fiq_debugger.c +++ b/arch/arm/common/fiq_debugger.c @@ -374,16 +374,17 @@ static void dump_allregs(struct fiq_debugger_state *state, unsigned *regs) static void dump_irqs(struct fiq_debugger_state *state) { int n; + struct irq_desc *desc; debug_printf(state, "irqnr total since-last status name\n"); - for (n = 0; n < NR_IRQS; n++) { - struct irqaction *act = irq_desc[n].action; + for_each_irq_desc(n, desc) { + struct irqaction *act = desc->action; if (!act && !kstat_irqs(n)) continue; debug_printf(state, "%5d: %10u %11u %8x %s\n", n, kstat_irqs(n), kstat_irqs(n) - state->last_irqs[n], - irq_desc[n].status_use_accessors, + desc->status_use_accessors, (act && act->name) ? act->name : "???"); state->last_irqs[n] = kstat_irqs(n); }