[ewg] [PATCH 2/8 warnings] Fix DEFINE_RWLOCK compiler warning
Jeremy Brown
jeremy.brown at qlogic.com
Fri Oct 5 16:47:28 PDT 2007
Tziporet, Vlad,
I've included the second of the eight warning fix patches.
Thanks!
Jeremy Brown
---
Remove broken DEFINE_RWLOCK def to stop compiler warnings
Signed-off-by: John Gregor <john.gregor at qlogic.com>
diff -r 8ec840d6e107 kernel_addons/backport/2.6.9_U3/include/linux/spinlock.h
--- a/kernel_addons/backport/2.6.9_U3/include/linux/spinlock.h Thu May 10 17:50:00 2007 -0700
+++ b/kernel_addons/backport/2.6.9_U3/include/linux/spinlock.h Thu May 10 18:32:51 2007 -0700
@@ -3,6 +3,11 @@
#include_next <linux/spinlock.h>
#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
+
+#ifdef DEFINE_RWLOCK
+#undef DEFINE_RWLOCK
+#endif
+
#define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED
#define spin_lock_nested(lock, subclass) spin_lock(lock)
More information about the ewg
mailing list