Skip to contentSkip to conversation

2.5.40-ac3 compile error

DISCUSSION James Bottomley 1 participant 1 message Oct 5, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

make[2]: *** [timer_pit.o] Error 1 make[2]: Leaving directory `/usr/ src/linux-2.5/linux-2.5.40/arch/i386/kernel'

This is caused by timer_pit.c not having quite the right #includes for the i386 subarch code.

The attached patch should fix it. (smp.h gets the smp_local_timer_interrupt, mpspec.h gets using_apic_timer and arch_hooks is the primer for the hooks in do_timer.h).

James

i386/kernel/timer_pit.c renamed from i386/kernel/timer_pit.c~ +3 -0
@@ -7,7 +7,10 @@
 #include <linux/module.h>
 #include <linux/device.h>
 #include <asm/timer.h>
+#include <asm/smp.h>
+#include <asm/mpspec.h>
 #include <asm/io.h>
+#include <asm/arch_hooks.h>
 
 /* fwd declarations */
 int init_pit(void);