[PATCH] m68k: compile fix - hardirq checks were in wrong place

move the sanity check for NR_IRQS being no more than 1<<HARDIRQ_BITS from
asm-m68k/hardirq.h to asm-m68k/irq.h; needed since NR_IRQS is not necessary
know at the points of inclusion of asm/hardirq.h due to the rather ugly header
dependencies on m68k. Fix is by far simpler than trying to massage those
dependencies...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Al Viro and committed by Linus Torvalds 85b07cd1 f5a61d0c

+9 -9
-9
include/asm-m68k/hardirq.h
··· 14 15 #define HARDIRQ_BITS 8 16 17 - /* 18 - * The hardirq mask has to be large enough to have 19 - * space for potentially all IRQ sources in the system 20 - * nesting on a single CPU: 21 - */ 22 - #if (1 << HARDIRQ_BITS) < NR_IRQS 23 - # error HARDIRQ_BITS is too low! 24 - #endif 25 - 26 #endif
··· 14 15 #define HARDIRQ_BITS 8 16 17 #endif
+9
include/asm-m68k/irq.h
··· 23 #endif 24 25 /* 26 * Interrupt source definitions 27 * General interrupt sources are the level 1-7. 28 * Adding an interrupt service routine for one of these sources
··· 23 #endif 24 25 /* 26 + * The hardirq mask has to be large enough to have 27 + * space for potentially all IRQ sources in the system 28 + * nesting on a single CPU: 29 + */ 30 + #if (1 << HARDIRQ_BITS) < NR_IRQS 31 + # error HARDIRQ_BITS is too low! 32 + #endif 33 + 34 + /* 35 * Interrupt source definitions 36 * General interrupt sources are the level 1-7. 37 * Adding an interrupt service routine for one of these sources