Commit e1a8b69a authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc32: drop useless preprocessor conditional in atomic_32.h

arch/sparc/include/asm/atomic_32.h is not exported to userspace.
So there is no need to protect code using __KERNEL__.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 348738af
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
#include <linux/types.h> #include <linux/types.h>
#ifdef __KERNEL__
#include <asm/system.h> #include <asm/system.h>
#define ATOMIC_INIT(i) { (i) } #define ATOMIC_INIT(i) { (i) }
...@@ -58,6 +56,4 @@ extern void atomic_set(atomic_t *, int); ...@@ -58,6 +56,4 @@ extern void atomic_set(atomic_t *, int);
#define smp_mb__before_atomic_inc() barrier() #define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier()
#endif /* !(__KERNEL__) */
#endif /* !(__ARCH_SPARC_ATOMIC__) */ #endif /* !(__ARCH_SPARC_ATOMIC__) */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment