[PATCH v2 07/33] locking/atomic: atomic: remove redundant include
From: Mark Rutland
Date: Tue May 25 2021 - 10:04:55 EST
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@xxxxxxx>
Cc: Boqun Feng <boqun.feng@xxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Will Deacon <will@xxxxxxxxxx>
---
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