Skip to content

Commit 4b358e2

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[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: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent ccdea2f commit 4b358e2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎include/asm-generic/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
header-y += atomic.h
21
header-y += errno-base.h
32
header-y += errno.h
43
header-y += fcntl.h

‎include/asm-generic/atomic.h‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
6666
atomic64_sub(i, v);
6767
}
6868

69-
#else
69+
#else /* BITS_PER_LONG == 64 */
7070

7171
typedef atomic_t atomic_long_t;
7272

@@ -113,5 +113,6 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
113113
atomic_sub(i, v);
114114
}
115115

116-
#endif
117-
#endif
116+
#endif /* BITS_PER_LONG == 64 */
117+
118+
#endif /* _ASM_GENERIC_ATOMIC_H */

0 commit comments

Comments
 (0)