* [2.6 patch] cleanup include/asm-generic/atomic.h
@ 2006-12-01 17:12 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-12-01 17:12 UTC (permalink / raw)
To: linux-kernel
cleanup asm-generic/atomic.h
- no longer a userspace header
- remove the unneeded #include <asm/types.h>
- #else/#endif comments
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/asm-generic/Kbuild | 1 -
include/asm-generic/atomic.h | 9 ++++-----
--- a/include/asm-generic/atomic.h
+++ b/include/asm-generic/atomic.h
@@ -8,8 +8,6 @@ #define _ASM_GENERIC_ATOMIC_H
* edit all arch specific atomic.h files.
*/
-#include <asm/types.h>
-
/*
* Suppport for atomic_long_t
*
@@ -66,7 +64,7 @@ static inline void atomic_long_sub(long
atomic64_sub(i, v);
}
-#else
+#else /* BITS_PER_LONG == 64 */
typedef atomic_t atomic_long_t;
@@ -113,5 +111,6 @@ static inline void atomic_long_sub(long
atomic_sub(i, v);
}
-#endif
-#endif
+#endif /* BITS_PER_LONG == 64 */
+
+#endif /* _ASM_GENERIC_ATOMIC_H */
--- linux-2.6.19-rc6-mm2/include/asm-generic/Kbuild.old 2006-12-01 13:17:07.000000000 +0100
+++ linux-2.6.19-rc6-mm2/include/asm-generic/Kbuild 2006-12-01 13:17:10.000000000 +0100
@@ -1,4 +1,3 @@
-header-y += atomic.h
header-y += errno-base.h
header-y += errno.h
header-y += fcntl.h
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-01 17:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-01 17:12 [2.6 patch] cleanup include/asm-generic/atomic.h Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox