mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 05:11:46 +00:00
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>
This commit is contained in:
parent
542d865bbe
commit
92296c6d6e
3 changed files with 11 additions and 8 deletions
|
@ -23,15 +23,9 @@
|
|||
|
||||
#else /* CONFIG_GENERIC_HARDIRQS */
|
||||
|
||||
#include <asm/irq_vectors.h> /* need possible max_nr_irqs() */
|
||||
|
||||
extern int nr_irqs;
|
||||
extern struct irq_desc *irq_to_desc(unsigned int irq);
|
||||
|
||||
# ifndef max_nr_irqs
|
||||
# define max_nr_irqs(nr_cpus) NR_IRQS
|
||||
# endif
|
||||
|
||||
# define for_each_irq_desc(irq, desc) \
|
||||
for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \
|
||||
irq++, desc = irq_to_desc(irq)) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue