[svn-commits] sruffell: linux/trunk r8117 - in /linux/trunk: drivers/dahdi/xpp/ include/dahdi/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Feb 26 10:40:44 CST 2010


Author: sruffell
Date: Fri Feb 26 10:40:40 2010
New Revision: 8117

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8117
Log:
dahdi: Move the definition of bool from xdefs.h into include/dahdi/kernel.h

I intend to use the bool definition in the wctdm24xxp driver and don't want to
duplicate the definition.

Modified:
    linux/trunk/drivers/dahdi/xpp/xdefs.h
    linux/trunk/drivers/dahdi/xpp/xframe_queue.h
    linux/trunk/include/dahdi/kernel.h

Modified: linux/trunk/drivers/dahdi/xpp/xdefs.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xdefs.h?view=diff&rev=8117&r1=8116&r2=8117
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xdefs.h (original)
+++ linux/trunk/drivers/dahdi/xpp/xdefs.h Fri Feb 26 10:40:40 2010
@@ -144,14 +144,6 @@
 #define	SET_PROC_DIRENTRY_OWNER(p)	do { } while(0);
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
-/* Also don't define this for later RHEL >= 5.2 . hex_asc is from the 
- * same linux-2.6-net-infrastructure-updates-to-mac80211-iwl4965.patch
- * as is the bool typedef. */
-#if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,18)  || !  defined(hex_asc)
-typedef int			bool;
-#endif
-#endif
 #else
 typedef int			bool;
 #endif

Modified: linux/trunk/drivers/dahdi/xpp/xframe_queue.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xframe_queue.h?view=diff&rev=8117&r1=8116&r2=8117
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xframe_queue.h (original)
+++ linux/trunk/drivers/dahdi/xpp/xframe_queue.h Fri Feb 26 10:40:40 2010
@@ -3,6 +3,7 @@
 
 #include <linux/list.h>
 #include <linux/spinlock.h>
+#include <dahdi/kernel.h>
 #include "xdefs.h"
 
 #define	XFRAME_QUEUE_MARGIN	10

Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=8117&r1=8116&r2=8117
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Fri Feb 26 10:40:40 2010
@@ -1209,6 +1209,15 @@
 #endif /* 2.6.25 */
 #endif /* 2.6.31 */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
+/* Also don't define this for later RHEL >= 5.2 . hex_asc is from the
+ * same linux-2.6-net-infrastructure-updates-to-mac80211-iwl4965.patch
+ * as is the bool typedef. */
+#if LINUX_VERSION_CODE != KERNEL_VERSION(2, 6, 18)  || !defined(hex_asc)
+typedef int			bool;
+#endif
+#endif
+
 #ifndef DMA_BIT_MASK
 #define DMA_BIT_MASK(n)	(((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
 #endif




More information about the svn-commits mailing list