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

Ingo Molnar
2006-05-30T10:11:03Z

Subject: lock validator: rwsem build fix for non-x86 architectures
From: Ingo Molnar <mingo@elte.hu>

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 <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
---
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