diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-05-06 23:07:26 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-05-07 03:48:54 +0300 |
commit | 8e65986dcae8c49501c1920064dc192e704248bb (patch) | |
tree | 188145ceb49a9025647a4a354d600c12a8f02a0c /arch/xtensa/include/asm/atomic.h | |
parent | fd58015ca9fed04fd52009e2dbcb7aef6940f734 (diff) | |
download | linux-8e65986dcae8c49501c1920064dc192e704248bb.tar.xz |
xtensa: drop ifdef __KERNEL__ from kernel-only headers
These headers are not exported to userspace, so they're never used
without __KERNEL__ defined. Drop these ifdef statements.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/atomic.h')
-rw-r--r-- | arch/xtensa/include/asm/atomic.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/xtensa/include/asm/atomic.h b/arch/xtensa/include/asm/atomic.h index 7de0149e1cf7..4e7311f58ae8 100644 --- a/arch/xtensa/include/asm/atomic.h +++ b/arch/xtensa/include/asm/atomic.h @@ -15,8 +15,6 @@ #include <linux/stringify.h> #include <linux/types.h> - -#ifdef __KERNEL__ #include <asm/processor.h> #include <asm/cmpxchg.h> #include <asm/barrier.h> @@ -200,6 +198,4 @@ ATOMIC_OPS(xor) #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) -#endif /* __KERNEL__ */ - #endif /* _XTENSA_ATOMIC_H */ |