Patchwork [2/2] sparc32: drop useless preprocessor conditional in atomic_32.h

login
register
mail settings
Submitter Sam Ravnborg
Date Dec. 26, 2011, 10:29 p.m.
Message ID <20111226222955.GB20839@merkur.ravnborg.org>
Download mbox | patch
Permalink /patch/133287/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sam Ravnborg - Dec. 26, 2011, 10:29 p.m.
From 87e57f5d7e32a974416f91e238b33fb6d8297e93 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <sam@ravnborg.org>
Date: Mon, 26 Dec 2011 21:05:27 +0100
Subject: [PATCH 2/2] 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>
---
 arch/sparc/include/asm/atomic_32.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
David Miller - Dec. 27, 2011, 7:12 p.m.
From: Sam Ravnborg <sam@ravnborg.org>
Date: Mon, 26 Dec 2011 23:29:55 +0100

>>From 87e57f5d7e32a974416f91e238b33fb6d8297e93 Mon Sep 17 00:00:00 2001
> From: Sam Ravnborg <sam@ravnborg.org>
> Date: Mon, 26 Dec 2011 21:05:27 +0100
> Subject: [PATCH 2/2] 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>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/include/asm/atomic_32.h b/arch/sparc/include/asm/atomic_32.h
index 534832f..03fd0c5 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__) */