aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2011-12-26 21:05:27 +0100
committerDavid S. Miller <davem@davemloft.net>2011-12-27 14:11:40 -0500
commite1a8b69afd63f26f8e7be39e3bc78c4894cdb9fd (patch)
treee5a0d19e61ce90e300aac33415cdaeceaf75a09e /arch/sparc
parent348738afe530cc3a7306bbd3d1ccd322f9638f32 (diff)
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: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/atomic_32.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/atomic_32.h b/arch/sparc/include/asm/atomic_32.h
index 534832f5b35..03fd0c52096 100644
--- a/arch/sparc/include/asm/atomic_32.h
+++ b/arch/sparc/include/asm/atomic_32.h
@@ -13,8 +13,6 @@
#include <linux/types.h>
-#ifdef __KERNEL__
-
#include <asm/system.h>
#define ATOMIC_INIT(i) { (i) }
@@ -58,6 +56,4 @@ extern void atomic_set(atomic_t *, int);
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()
-#endif /* !(__KERNEL__) */
-
#endif /* !(__ARCH_SPARC_ATOMIC__) */