projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
348738a
)
sparc32: drop useless preprocessor conditional in atomic_32.h
author
Sam Ravnborg
<sam@ravnborg.org>
Mon, 26 Dec 2011 20:05:27 +0000
(21:05 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 27 Dec 2011 19:11:40 +0000
(14:11 -0500)
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>
arch/sparc/include/asm/atomic_32.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/include/asm/atomic_32.h
b/arch/sparc/include/asm/atomic_32.h
index 534832f5b35366c0890cc125e808394ce8d6e18f..03fd0c52096202559adacd7b180159832073ebef 100644
(file)
--- 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__) */
This page took
0.024635 seconds
and
5
git commands to generate.