public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] cleanup include/asm-generic/atomic.h
Date: Fri, 1 Dec 2006 18:12:08 +0100	[thread overview]
Message-ID: <20061201171208.GG11084@stusta.de> (raw)

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

                 reply	other threads:[~2006-12-01 17:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061201171208.GG11084@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox