aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2011-12-26 15:05:27 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-27 14:11:40 -0500
commite1a8b69afd63f26f8e7be39e3bc78c4894cdb9fd (patch)
treee5a0d19e61ce90e300aac33415cdaeceaf75a09e /arch/sparc/include/asm
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/include/asm')
-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 534832f5b353..03fd0c520962 100644
--- a/arch/sparc/include/asm/atomic_32.h
+++ b/arch/sparc/include/asm/atomic_32.h
@@ -13,8 +13,6 @@
13 13
14#include <linux/types.h> 14#include <linux/types.h>
15 15
16#ifdef __KERNEL__
17
18#include <asm/system.h> 16#include <asm/system.h>
19 17
20#define ATOMIC_INIT(i) { (i) } 18#define ATOMIC_INIT(i) { (i) }
@@ -58,6 +56,4 @@ extern void atomic_set(atomic_t *, int);
58#define smp_mb__before_atomic_inc() barrier() 56#define smp_mb__before_atomic_inc() barrier()
59#define smp_mb__after_atomic_inc() barrier() 57#define smp_mb__after_atomic_inc() barrier()
60 58
61#endif /* !(__KERNEL__) */
62
63#endif /* !(__ARCH_SPARC_ATOMIC__) */ 59#endif /* !(__ARCH_SPARC_ATOMIC__) */