[patch, -rc5-mm1] lock validator: rwsem build fix for non-x86 architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: lock validator: rwsem build fix for non-x86 architectures
From: Ingo Molnar <[email protected]>

rwsem build fix for non-x86 architectures which use their own
asm/rwsem.h and have no __init_rwsem method yet.

Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Arjan van de Ven <[email protected]>
---
 include/linux/rwsem.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux/include/linux/rwsem.h
===================================================================
--- linux.orig/include/linux/rwsem.h
+++ linux/include/linux/rwsem.h
@@ -30,8 +30,12 @@ struct rw_semaphore;
  * Lockdep: type splitting can also be done for dynamic locks, if for
  * example there are per-CPU dynamically allocated locks:
  */
+#ifdef CONFIG_PROVE_RWSEM_LOCKING
 #define init_rwsem_key(sem, key)				\
 	__init_rwsem((sem), #sem, key)
+#else
+# define init_rwsem_key(sem, key)	init_rwsem(sem)
+#endif
 
 #ifndef rwsemtrace
 #if RWSEM_DEBUG
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux