Skip to content

Commit

Permalink
[PATCH] cleanup include/asm-generic/atomic.h
Browse files Browse the repository at this point in the history
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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Dec 7, 2006
1 parent ccdea2f commit 4b358e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/asm-generic/Kbuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
header-y += atomic.h
header-y += errno-base.h
header-y += errno.h
header-y += fcntl.h
Expand Down
7 changes: 4 additions & 3 deletions include/asm-generic/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
atomic64_sub(i, v);
}

#else
#else /* BITS_PER_LONG == 64 */

typedef atomic_t atomic_long_t;

Expand Down Expand Up @@ -113,5 +113,6 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
atomic_sub(i, v);
}

#endif
#endif
#endif /* BITS_PER_LONG == 64 */

#endif /* _ASM_GENERIC_ATOMIC_H */

0 comments on commit 4b358e2

Please sign in to comment.