• Boqun Feng's avatar
    locking/atomics, cmpxchg: Privatize the inclusion of asm/cmpxchg.h · 84567995
    Boqun Feng authored
    After commit:
    
      654672d4 ("locking/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
    Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Aybuke Ozdemir <aybuke.147@gmail.com>
    Cc: Chris Brannon <chris@the-brannons.com>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Kirk Reiser <kirk@reisers.ca>
    Cc: Kishon Vijay Abraham I <kishon@ti.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
    Cc: Shradha Shah <sshah@solarflare.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: William Hubbs <w.d.hubbs@gmail.com>
    Cc: devel@driverdev.osuosl.org
    Cc: linux-net-drivers@solarflare.com
    Cc: speakup@linux-speakup.org
    Link: http://lkml.kernel.org/r/1440589966-26280-1-git-send-email-boqun.feng@gmail.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    84567995
phy-rcar-gen2.c 8.21 KB