[PATCH 1/6] i386 - fix cmpxchg warning

From: Jeff Dike
Date: Tue Mar 27 2007 - 14:32:37 EST


I started getting warnings from atomic.h about cmpxchg not having a
prototype. It's declared in system.h, so including that fixes the UML
build warnings and has no noticable ill effects on the i386 build.

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxxxxxx>
--
include/asm-i386/atomic.h | 1 +
1 file changed, 1 insertion(+)

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxxxxxx>
--

Index: linux-2.6.21-mm/include/asm-i386/atomic.h
===================================================================
--- linux-2.6.21-mm.orig/include/asm-i386/atomic.h 2007-03-27 12:25:16.000000000 -0400
+++ linux-2.6.21-mm/include/asm-i386/atomic.h 2007-03-27 12:26:38.000000000 -0400
@@ -3,6 +3,7 @@

#include <linux/compiler.h>
#include <asm/processor.h>
+#include <asm/system.h>

/*
* Atomic operations that C can't guarantee us. Useful for
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/