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

From: Ingo Molnar
Date: Tue May 30 2006 - 06:10:12 EST


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

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@xxxxxxx>
Signed-off-by: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/