Skip to contentSkip to conversation

Linux 2.4.0test11-ac1

DISCUSSION Steven Cole 1 participant 1 message Nov 22, 2000

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Alan Cox
Quoted 2 lines

I tried to compile 2.4.0-test11-ac1, and here is where the compile bombed

out:

Quoted 2 lines
Quoted 2 lines

/usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux/include -Wall

-Wstrict-prototypes

Quoted 7 lines
Quoted 5 lines

-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -c -o
sched.o sched.c
irq.c:182: conflicting types for global_irq_lock' /usr/src/linux/include/asm/hardirq.h:45: previous declaration of global_irq_lock'

I'll check this. I take it you tried an SMP build ?

Yes, this above build attempt was for an SMP kernel. When I got home, I tried to build an UP kernel with test11-ac1, and as I'm sure you know already, it worked perfectly. I then tried to build another SMP kernel, with the same results as above.

I submitted a tiny patchlet earlier for this. It seems to fix the symptoms. I compiled and ran a kernel with this patch on the SMP box at work.

I replicated the associated comment for people searching on this pattern.

I'm at home now, please cc any questions or comments to [email protected].

Steven

Here is the patchlet again:

include/asm/hardirq.h Tue Nov 21 13:40:13 2000 renamed from include/asm/hardirq.h.orig Tue Nov 21 13:38:07 2000 +1 -1
diff -u linux/include/asm/hardirq.h.orig linux/include/asm/hardirq.h
@@ -42,7 +42,7 @@
 #include <asm/smp.h>
 
 extern unsigned char global_irq_holder;
-extern unsigned volatile int global_irq_lock;
+extern unsigned volatile long global_irq_lock; /* long for set_bit --RR */
 
 static inline int irqs_running (void)
 {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/