Skip to content

Commit

Permalink
sparc32: drop useless preprocessor conditional in atomic_32.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Dec 27, 2011
1 parent 348738a commit e1a8b69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/sparc/include/asm/atomic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#include <linux/types.h>

#ifdef __KERNEL__

#include <asm/system.h>

#define ATOMIC_INIT(i) { (i) }
Expand Down Expand Up @@ -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__) */

0 comments on commit e1a8b69

Please sign in to comment.