Messages in this thread Patch in this message | | | Date | Sat, 24 Feb 2001 00:06:44 +0100 (CET) | From | Sven Koch <> | Subject | Alpha compile error on 2.4.2-ac3 (irq_err_count) |
| |
hi...
Machine: DEC-Alpha XL300 (Alcor/XLT) Kernel: 2.4.2-ac3
Compile-Error: make[1]: Entering directory `/usr/src/linux-2.4.2-ac3/arch/alpha/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.4.2-ac3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -Wa,-mev6 -c -o irq_alpha.o irq_alpha.c irq_alpha.c: In function `dummy_perf': irq_alpha.c:33: `irq_err_count' undeclared (first use in this function) irq_alpha.c:33: (Each undeclared identifier is reported only once irq_alpha.c:33: for each function it appears in.) irq_alpha.c: In function `do_entInt': irq_alpha.c:54: `irq_err_count' undeclared (first use in this function) irq_alpha.c: In function `process_mcheck_info': irq_alpha.c:152: warning: unused variable `cpu' make[1]: *** [irq_alpha.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.2-ac3/arch/alpha/kernel' make: *** [_dir_arch/alpha/kernel] Error 2
Temporary fix to get it compiling again: --- linux/include/asm-alpha/hw_irq.h~ Fri Feb 23 23:45:39 2001 +++ linux/include/asm-alpha/hw_irq.h Fri Feb 23 23:59:51 2001 @@ -5,6 +5,8 @@
static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i) {}
+extern volatile unsigned long irq_err_count; + #ifdef CONFIG_ALPHA_GENERIC #define ACTUAL_NR_IRQS alpha_mv.nr_irqs #else
But the real bug seems to be that the changes to irq_err_count ("atomic_t" instead of "volatile unsigned long", and moving it from linux/irq.h to asm/hw_irq.h are done for i386 but not for the other architectures.
c'ya sven
--
The Internet treats censorship as a routing problem, and routes around it. (John Gilmore on http://www.cygnus.com/~gnu/)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |