diff options
author | Mike Travis <travis@sgi.com> | 2009-01-11 17:22:58 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-11 18:13:45 (GMT) |
commit | 92296c6d6e908c35fca287a21af27be814af9c75 (patch) | |
tree | ba4a85a77b5bb3b609348dafafb710d567d1810a /kernel/irq/handle.c | |
parent | 542d865bbed4ce1f050f586e53cf1cfadda93766 (diff) | |
download | linux-92296c6d6e908c35fca287a21af27be814af9c75.tar.xz |
cpumask, irq: non-x86 build failures
Ingo Molnar wrote:
> All non-x86 architectures fail to build:
>
> In file included from /home/mingo/tip/include/linux/random.h:11,
> from /home/mingo/tip/include/linux/stackprotector.h:6,
> from /home/mingo/tip/init/main.c:17:
> /home/mingo/tip/include/linux/irqnr.h:26:63: error: asm/irq_vectors.h: No such file or directory
Do not include asm/irq_vectors.h in generic code - it's not available
on all architectures.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index b39f32a..04d3e46 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -58,6 +58,11 @@ int nr_irqs = NR_IRQS; EXPORT_SYMBOL_GPL(nr_irqs); #ifdef CONFIG_SPARSE_IRQ + +#ifndef max_nr_irqs +#define max_nr_irqs(nr_cpus) NR_IRQS +#endif + static struct irq_desc irq_desc_init = { .irq = -1, .status = IRQ_DISABLED, |