Re: [PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h

2015-09-13 Thread Davidlohr Bueso
On Wed, 09 Sep 2015, Boqun Feng wrote: After commit: atomics: add acquire/release/relaxed variants of some atomic operations Architectures may only provide {cmp,}xchg_relaxed definitions in asm/cmpxchg.h. Other variants, such as {cmp,}xchg, may be built in linux/atomic.h, which means simply in

Re: [PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h

2015-09-09 Thread Greg Kroah-Hartman
On Wed, Sep 09, 2015 at 09:27:04AM +0800, Boqun Feng wrote: > After commit: > > atomics: add acquire/release/relaxed variants of some atomic operations > > Architectures may only provide {cmp,}xchg_relaxed definitions in > asm/cmpxchg.h. Other variants, such as {cmp,}xchg, may be built in > linux

[PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h

2015-09-08 Thread Boqun Feng
After commit: atomics: add acquire/release/relaxed variants of some atomic operations Architectures may only provide {cmp,}xchg_relaxed definitions in asm/cmpxchg.h. Other variants, such as {cmp,}xchg, may be built in linux/atomic.h, which means simply including asm/cmpxchg.h may not get the defi