This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH 00/09] atomic.h : standardizing atomic primitives
- From: Peter Zijlstra <a dot p dot zijlstra at chello dot nl>
- To: Mathieu Desnoyers <mathieu dot desnoyers at polymtl dot ca>
- Cc: linux-kernel at vger dot kernel dot org, Linus Torvalds <torvalds at osdl dot org>, Andrew Morton <akpm at osdl dot org>, Ingo Molnar <mingo at redhat dot com>, Greg Kroah-Hartman <gregkh at suse dot de>, Christoph Hellwig <hch at infradead dot org>, ltt-dev at shafik dot org, systemtap at sources dot redhat dot com, Douglas Niehaus <niehaus at eecs dot ku dot edu>, "Martin J. Bligh" <mbligh at mbligh dot org>, Thomas Gleixner <tglx at linutronix dot de>, Paul Mackerras <paulus at samba dot org>, Jeff Dike <jdike at addtoit dot com>
- Date: Fri, 26 Jan 2007 11:06:42 +0100
- Subject: Re: [PATCH 00/09] atomic.h : standardizing atomic primitives
- References: <11697417541743-git-send-email-mathieu.desnoyers@polymtl.ca>
On Thu, 2007-01-25 at 11:15 -0500, Mathieu Desnoyers wrote:
> atomic.h : standardizing atomic primitives
>
> It mainly adds support for missing 64 bits cmpxchg and 64 bits atomic add
> unless. Therefore, principally 64 bits architectures are targeted by these
> patches. It also adds the complete list of atomic operations on the atomic_long
> type.
>
> These patches apply on 2.6.20-rc5-git4.
ARCH=um SUBARCH=i386
In file included from include2/asm/arch/atomic.h:257,
from include2/asm/atomic.h:10,
from /usr/src/linux-2.6-git/include/linux/file.h:9,
from /usr/src/linux-2.6-git/mm/fadvise.c:12:
/usr/src/linux-2.6-git/include/asm-generic/atomic.h: In function âatomic_long_add_unlessâ:
/usr/src/linux-2.6-git/include/asm-generic/atomic.h:260: warning: implicit declaration of function âcmpxchgâ
/usr/src/linux-2.6-git/include/asm-generic/atomic.h: In function âatomic_long_xchgâ:
/usr/src/linux-2.6-git/include/asm-generic/atomic.h:281: warning: implicit declaration of function âxchgâ
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
diff --git a/include/asm-um/atomic.h b/include/asm-um/atomic.h
index b683f10..b2766b0 100644
--- a/include/asm-um/atomic.h
+++ b/include/asm-um/atomic.h
@@ -6,6 +6,7 @@ #define __UM_ATOMIC_H
*/
#include "linux/kernel.h"
+#include "asm/arch/system.h"
#include "asm/arch/atomic.h"
#endif