Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1221634
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h |
| Date | 2015-09-09 21:00 +0200 |
| Message-ID | <q6SL8-39p-11@gated-at.bofh.it> (permalink) |
| References | <q6Cn0-4Qb-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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/atomic.h, which means simply including asm/cmpxchg.h may not get
> the definitions of all the{cmp,}xchg variants. Therefore, we should
> privatize the inclusions of asm/cmpxchg.h to keep it only included in
> arch/* and replace the inclusions outside with linux/atomic.h
>
> Acked-by: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
> ---
> v1 --> v2:
> 1. rebase on current master branch of tip tree
> 2. remove documentation modification
>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h Boqun Feng <boqun.feng@gmail.com> - 2015-09-09 03:30 +0200 Re: [PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-09-09 21:00 +0200 Re: [PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h Davidlohr Bueso <dave@stgolabs.net> - 2015-09-14 00:50 +0200
csiph-web