lkml.org 
[lkml]   [2021]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 07/33] locking/atomic: atomic: remove redundant include
    Date
    Since commit:

    560cb12a4080a48b ("locking,arch: Rewrite generic atomic support")

    ... we conditionally include <linux/irqflags.h> before defining atomics
    using locking, and hence do not need to do so unconditionally later in
    the header.

    This patch removes the redundant include.

    Signed-off-by: Mark Rutland <mark.rutland@arm.com>
    Cc: Boqun Feng <boqun.feng@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Will Deacon <will@kernel.org>
    ---
    include/asm-generic/atomic.h | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h
    index ebacbc6b363b..d4bf803d6491 100644
    --- a/include/asm-generic/atomic.h
    +++ b/include/asm-generic/atomic.h
    @@ -143,8 +143,6 @@ ATOMIC_OP(xor, ^)

    #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))

    -#include <linux/irqflags.h>
    -
    static inline void atomic_add(int i, atomic_t *v)
    {
    atomic_add_return(i, v);
    --
    2.11.0
    \
     
     \ /
      Last update: 2021-05-25 16:05    [W:4.153 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site