[2.6 patch] cleanup include/asm-generic/atomic.h

From: Adrian Bunk
Date: Fri Dec 01 2006 - 12:12:37 EST


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@xxxxxxxxx>

---

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/