aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/asm-generic/atomic.h
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2021-05-25 15:02:06 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-05-26 13:20:50 +0200
commit89eb78d542394a8461164009272ea654357795ad (patch)
tree35d5d77eaa916baf69d998d9d673abd5ff0ad90c /include/asm-generic/atomic.h
parentlocking/atomic: atomic: remove stale comments (diff)
downloadwireguard-linux-89eb78d542394a8461164009272ea654357795ad.tar.xz
wireguard-linux-89eb78d542394a8461164009272ea654357795ad.zip
locking/atomic: atomic: remove redundant include
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> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210525140232.53872-8-mark.rutland@arm.com
Diffstat (limited to 'include/asm-generic/atomic.h')
-rw-r--r--include/asm-generic/atomic.h2
1 files changed, 0 insertions, 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);