From: Mathieu Desnoyers Date: Tue, 8 May 2007 07:34:20 +0000 (-0700) Subject: atomic.h: i386 type safety fix X-Git-Tag: v2.6.22-rc1~548 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e656e245d5adf19f3c431e7f7792659c204e32f2;p=pandora-kernel.git atomic.h: i386 type safety fix Remove an explicit cast to an integer type for the result returned by cmpxchg. It is not per se a problem on the i386 architecture, because sizeof(int) == sizeof(long), but whenever this code is cut'n'pasted to a accept passing an atomic64_t value as parameter to cmpxchg, xchg and add_unless, having 64 bits inputs casted to 32 bits. Signed-off-by: Mathieu Desnoyers Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed