mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fix x86 subarch breakage by the patch to allow more APIC irq sources
@ 2003-10-22 15:56 James Bottomley
  2003-10-22 16:31 ` Linus Torvalds
  2003-10-23  3:41 ` James Cleverdon
  0 siblings, 2 replies; 4+ messages in thread
From: James Bottomley @ 2003-10-22 15:56 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: jamesclv, Linux Kernel

The problem with this patch was that it defined a new quantity
NR_IRQ_VECTORS.  However, the definition of NR_IRQ_VECTORS is only in
mach-default/irq_vectors.h.  Every subarch which defines it's own
irq_vectors.h (that's voyager, visws and pc9800) now won't compile.

I think the best fix is the attached (although you could clean up
mach-default/irq_vectors.h with this too).

James

===== include/asm-i386/irq.h 1.9 vs edited =====
--- 1.9/include/asm-i386/irq.h	Wed Apr 23 02:49:34 2003
+++ edited/include/asm-i386/irq.h	Wed Oct 22 10:49:21 2003
@@ -15,6 +15,10 @@
 /* include comes from machine specific directory */
 #include "irq_vectors.h"
 
+#ifndef NR_IRQ_VECTORS
+#define NR_IRQ_VECTORS NR_IRQS
+#endif
+
 static __inline__ int irq_canonicalize(int irq)
 {
 	return ((irq == 2) ? 9 : irq);


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-23  3:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-22 15:56 Fix x86 subarch breakage by the patch to allow more APIC irq sources James Bottomley
2003-10-22 16:31 ` Linus Torvalds
2003-10-22 16:59   ` James Bottomley
2003-10-23  3:41 ` James Cleverdon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®