OSDN Git Service

fix build error with some flavours of gcc 2.95.3
authorSteve Rosenbluth <conceptoverdrive@sbcglobal.net>
Sun, 1 Jun 2008 14:35:54 +0000 (16:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 1 Jun 2008 18:23:57 +0000 (20:23 +0200)
This patches include/asm/processor.h
Sometime between 2.4.29 and 2.4.36.2 spaces were deleted between colons
which causes compiler gcc 2.95.3 to fail to parse the header
when compiling applications which include it.
Adding back the spaces solves the problem on gcc 2.95.3.
gcc 4.1.1 also compiles the kernel OK with this patch."

Signed-off-by: Willy Tarreau <w@1wt.eu>
include/asm-i386/processor.h

index 914c191..4ccfc5d 100644 (file)
@@ -495,7 +495,7 @@ struct extended_sigtable {
 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
 static inline void rep_nop(void)
 {
-       __asm__ __volatile__("rep;nop" ::: "memory");
+       __asm__ __volatile__("rep;nop": : :"memory");
 }
 
 #define cpu_relax()    rep_nop()