lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 1 Dec 2006 18:12:08 +0100
From:	Adrian Bunk <bunk@...sta.de>
To:	linux-kernel@...r.kernel.org
Subject: [2.6 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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ