[svn-commits] sruffell: linux/trunk r6554 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 1 11:43:21 CDT 2009


Author: sruffell
Date: Fri May  1 11:43:18 2009
New Revision: 6554

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6554
Log:
dahdi-base: define __RW_LOCK_UNLOCKED()

Linux 2.6.9 does not contain that definition, but the older definition is
deprecated since it defeats lock state checking. DAHDI-253

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=6554&r1=6553&r2=6554
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Fri May  1 11:43:18 2009
@@ -356,6 +356,10 @@
 #endif
 
 static u_char defgain[256];
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 10)
+#define __RW_LOCK_UNLOCKED() RW_LOCK_UNLOCKED
+#endif
 
 #ifdef DEFINE_RWLOCK
 static DEFINE_RWLOCK(zone_lock);




More information about the svn-commits mailing list