lkml.org 
[lkml]   [2006]   [May]   [30]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
 
Messages in this thread
Patch in this message
/
DateTue, 30 May 2006 12:11:23 +0200
FromIngo Molnar <>
Subject[patch, -rc5-mm1] lock validator: rwsem build fix for non-x86 architectures
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-30 12:13    [from the cache]
©2003-2008