From: Mark Rutland Date: Tue, 25 May 2021 14:02:06 +0000 (+0100) Subject: locking/atomic: atomic: remove redundant include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=89eb78d542394a8461164009272ea654357795ad;p=linux.git locking/atomic: atomic: remove redundant include Since commit: 560cb12a4080a48b ("locking,arch: Rewrite generic atomic support") ... we conditionally include 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 Cc: Boqun Feng Cc: Peter Zijlstra Cc: Will Deacon Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20210525140232.53872-8-mark.rutland@arm.com --- diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index ebacbc6b363b7..d4bf803d6491c 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 - static inline void atomic_add(int i, atomic_t *v) { atomic_add_return(i, v);