rwsem: Cleanup includes
authorThomas Gleixner <tglx@linutronix.de>
Wed, 26 Jan 2011 20:05:50 +0000 (20:05 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jan 2011 11:30:38 +0000 (12:30 +0100)
All rwsem implementations include the same headers. Include them from
include/linux/rwsem.h

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Matt Turner <mattst88@gmail.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Acked-by: David Miller <davem@davemloft.net>
Cc: Chris Zankel <chris@zankel.net>
LKML-Reference: <20110126195833.483520950@linutronix.de>

arch/alpha/include/asm/rwsem.h
arch/ia64/include/asm/rwsem.h
arch/powerpc/include/asm/rwsem.h
arch/s390/include/asm/rwsem.h
arch/sh/include/asm/rwsem.h
arch/sparc/include/asm/rwsem.h
arch/x86/include/asm/rwsem.h
arch/xtensa/include/asm/rwsem.h
include/linux/rwsem-spinlock.h
include/linux/rwsem.h

index 19c9cc7ed94b610e5b2022b0f60f3ecfe37971f6..839a3fa209441529fd48a511016da853aaddf67b 100644 (file)
 #ifdef __KERNEL__
 
 #include <linux/compiler.h>
-#include <linux/list.h>
-#include <linux/spinlock.h>
-
-struct rwsem_waiter;
 
 extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *sem);
 extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *sem);
index 215d5454c7d30596f16dbe7266038633c40484f7..9bcf0792b01c090a9fe290546e1275936bf41122 100644 (file)
@@ -25,9 +25,6 @@
 #error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
 #endif
 
-#include <linux/list.h>
-#include <linux/spinlock.h>
-
 #include <asm/intrinsics.h>
 
 /*
index 8447d89fbe72639a6a0ce2db68694554bd7c61e8..c12abbe1d06f17e01230045921bc195d8bc3d9c7 100644 (file)
  * by Paul Mackerras <paulus@samba.org>.
  */
 
-#include <linux/list.h>
-#include <linux/spinlock.h>
-#include <asm/atomic.h>
-#include <asm/system.h>
-
 /*
  * the semaphore definition
  */
index 423fdda2322dd6ee3f51add1cea21ce96f0b63f0..9cc8592b33bb647499a9f59c0efba0e361af0ee1 100644 (file)
 
 #ifdef __KERNEL__
 
-#include <linux/list.h>
-#include <linux/spinlock.h>
-
-struct rwsem_waiter;
-
 extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *);
 extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *);
 extern struct rw_semaphore *rwsem_wake(struct rw_semaphore *);
index 06e2251a5e483ebfd57594f55a02cbe69bfd1b59..df6f34623c5452095d7f62a33dc249cf0336f720 100644 (file)
 #endif
 
 #ifdef __KERNEL__
-#include <linux/list.h>
-#include <linux/spinlock.h>
-#include <asm/atomic.h>
-#include <asm/system.h>
-
 /*
  * the semaphore definition
  */
index a2b4302869bcfb8ffe1d54ee3282293a18aeae83..902d36bf150d360a0a34671347524fa28d29c322 100644 (file)
 #endif
 
 #ifdef __KERNEL__
-
-#include <linux/list.h>
-#include <linux/spinlock.h>
-
-struct rwsem_waiter;
-
 struct rw_semaphore {
        signed long                     count;
 #define RWSEM_UNLOCKED_VALUE           0x00000000L
index d1e41b0f9b60b37eb061caec5661fc6fb9e1cbbf..a626cff8604166fdd0a97a56a3c599f7d7668e71 100644 (file)
 #endif
 
 #ifdef __KERNEL__
-
-#include <linux/list.h>
-#include <linux/spinlock.h>
-#include <linux/lockdep.h>
 #include <asm/asm.h>
 
-struct rwsem_waiter;
-
 extern asmregparm struct rw_semaphore *
  rwsem_down_read_failed(struct rw_semaphore *sem);
 extern asmregparm struct rw_semaphore *
index 9d32f687439396beedfe2757c0287d345769103e..1be2102c648edc94e502d859b16ba9c048638379 100644 (file)
 #ifndef _LINUX_RWSEM_H
 #error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
 #endif
-
-#include <linux/list.h>
-#include <linux/spinlock.h>
-#include <asm/atomic.h>
-#include <asm/system.h>
-
 /*
  * the semaphore definition
  */
index bdfcc2527970d04ed2e3b3ee773519075d2da23a..8c0dc7fc07a4113f6b731b40773989ad9e94c9f1 100644 (file)
 #error "please don't include linux/rwsem-spinlock.h directly, use linux/rwsem.h instead"
 #endif
 
-#include <linux/spinlock.h>
-#include <linux/list.h>
-
 #ifdef __KERNEL__
-
-#include <linux/types.h>
-
-struct rwsem_waiter;
-
 /*
  * the rw-semaphore definition
  * - if activity is 0 then there are no active readers or writers
index efd348fe8ca75f6d9effcf8f05e87bd276e46d97..496296d12d62a183304a443caa921cb0fd821538 100644 (file)
@@ -11,6 +11,9 @@
 
 #include <linux/types.h>
 #include <linux/kernel.h>
+#include <linux/list.h>
+#include <linux/spinlock.h>
+
 #include <asm/system.h>
 #include <asm/atomic.h>
 
This page took 0.030487 seconds and 5 git commands to generate.