diff options
author | Mike Travis <travis@sgi.com> | 2009-01-11 12:22:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-11 13:13:45 -0500 |
commit | 92296c6d6e908c35fca287a21af27be814af9c75 (patch) | |
tree | ba4a85a77b5bb3b609348dafafb710d567d1810a /include | |
parent | 542d865bbed4ce1f050f586e53cf1cfadda93766 (diff) |
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 'include')
-rw-r--r-- | include/linux/irqnr.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h index de66e4e10406..887477bc2ab0 100644 --- a/include/linux/irqnr.h +++ b/include/linux/irqnr.h | |||
@@ -23,15 +23,9 @@ | |||
23 | 23 | ||
24 | #else /* CONFIG_GENERIC_HARDIRQS */ | 24 | #else /* CONFIG_GENERIC_HARDIRQS */ |
25 | 25 | ||
26 | #include <asm/irq_vectors.h> /* need possible max_nr_irqs() */ | ||
27 | |||
28 | extern int nr_irqs; | 26 | extern int nr_irqs; |
29 | extern struct irq_desc *irq_to_desc(unsigned int irq); | 27 | extern struct irq_desc *irq_to_desc(unsigned int irq); |
30 | 28 | ||
31 | # ifndef max_nr_irqs | ||
32 | # define max_nr_irqs(nr_cpus) NR_IRQS | ||
33 | # endif | ||
34 | |||
35 | # define for_each_irq_desc(irq, desc) \ | 29 | # define for_each_irq_desc(irq, desc) \ |
36 | for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \ | 30 | for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \ |
37 | irq++, desc = irq_to_desc(irq)) \ | 31 | irq++, desc = irq_to_desc(irq)) \ |