Skip to contentSkip to conversation

cleanup include/asm-generic/atomic.h

PATCH New Adrian Bunk 1 participant 1 message Dec 1, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---

 include/asm-generic/Kbuild   |    1 -
 include/asm-generic/atomic.h |    9 ++++-----
include/asm-generic/atomic.h +4 -5
@@ -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  */
include/asm-generic/Kbuild renamed from include/asm-generic/Kbuild.old +0 -1
@@ -1,4 +1,3 @@
-header-y += atomic.h
 header-y += errno-base.h
 header-y += errno.h
 header-y += fcntl.h