[dahdi-commits] sruffell: linux/trunk r5636 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Jan 5 16:49:19 CST 2009
Author: sruffell
Date: Mon Jan 5 16:49:18 2009
New Revision: 5636
URL: http://svn.digium.com/view/dahdi?view=rev&rev=5636
Log:
Even on older kernels, do not redefine WARN_ON_ONCE if it is already defined.
Modified:
linux/trunk/drivers/dahdi/wctc4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=5636&r1=5635&r2=5636
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Mon Jan 5 16:49:18 2009
@@ -73,6 +73,7 @@
} \
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#ifndef WARN_ON_ONCE
#define WARN_ON_ONCE(__condition) do { \
static int __once = 1; \
if (unlikely(__condition)) { \
@@ -82,6 +83,7 @@
} \
} \
} while(0)
+#endif
#endif
#define INVALID 999 /* Used to mark invalid channels, commands, etc.. */
More information about the dahdi-commits
mailing list