Commit 4b358e22 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] cleanup include/asm-generic/atomic.h

cleanup asm-generic/atomic.h

 - no longer a userspace header
 - remove the unneeded #include <asm/types.h>
 - #else/#endif comments

[akpm@osdl.org: fix arm build]
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ccdea2f8
header-y += atomic.h
header-y += errno-base.h header-y += errno-base.h
header-y += errno.h header-y += errno.h
header-y += fcntl.h header-y += fcntl.h
......
...@@ -66,7 +66,7 @@ static inline void atomic_long_sub(long i, atomic_long_t *l) ...@@ -66,7 +66,7 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
atomic64_sub(i, v); atomic64_sub(i, v);
} }
#else #else /* BITS_PER_LONG == 64 */
typedef atomic_t atomic_long_t; typedef atomic_t atomic_long_t;
...@@ -113,5 +113,6 @@ static inline void atomic_long_sub(long i, atomic_long_t *l) ...@@ -113,5 +113,6 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
atomic_sub(i, v); atomic_sub(i, v);
} }
#endif #endif /* BITS_PER_LONG == 64 */
#endif
#endif /* _ASM_GENERIC_ATOMIC_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment