]> rtime.felk.cvut.cz Git - linux-imx.git/commit
asm-generic: move cmpxchg*_local defs to cmpxchg.h
authorJonas Bonn <jonas@southpole.se>
Thu, 28 Feb 2013 05:37:05 +0000 (06:37 +0100)
committerJonas Bonn <jonas@southpole.se>
Wed, 13 Mar 2013 05:11:05 +0000 (06:11 +0100)
commit00c30e0681bf5563c8670c0ab419886f56626430
tree994d47deeb1771f3018317d7bad45dfbf7ba9d19
parentd4cb776f33c7343e805dc3d6dd71a80eff9f66f1
asm-generic: move cmpxchg*_local defs to cmpxchg.h

asm/cmpxchg.h can be included on its own and needs to be self-consistent.
The definitions for the cmpxchg*_local macros, as such, need to be part
of this file.

This fixes a build issue on OpenRISC since the system.h smashing patch
96f951edb1f1bdbbc99b0cd458f9808bb83d58ae that introdued the direct inclusion
asm/cmpxchg.h into linux/llist.h.

CC: David Howells <dhowells@redhat.com>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/atomic.h
include/asm-generic/cmpxchg.h