[dahdi-commits] sruffell: linux/trunk r5237 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Wed Nov 5 14:17:51 CST 2008


Author: sruffell
Date: Wed Nov  5 14:17:50 2008
New Revision: 5237

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5237
Log:
Fix warning messages in order to build on 2.6.27.

(Closes issue #13757)
Patch provided by tzafrir.

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=5237&r1=5236&r2=5237
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Wed Nov  5 14:17:50 2008
@@ -60,7 +60,7 @@
 #	define ALLOC_FLAGS GFP_KERNEL
 #endif
 
-#define WARN() WARN_ON(1)
+#define WARN_ALWAYS() WARN_ON(1)
 
 #define DTE_PRINTK(_lvl, _fmt, _args...) \
 	   printk(KERN_##_lvl "%s: %s: " _fmt, THIS_MODULE->name, \
@@ -2192,7 +2192,7 @@
 	
 	for (i = 0; i < DRING_SIZE; ++i) { 
 		if (!(cmd = alloc_cmd())) {
-			WARN();
+			WARN_ALWAYS();
 			return;
 		}
 		cmd->data_len = SFRAME_SIZE;
@@ -2200,7 +2200,7 @@
 			/* When we're starting the DMA, we should always be
 			 * able to fill the ring....so something is wrong
 			 * here. */
-			WARN();
+			WARN_ALWAYS();
 			free_cmd(cmd);
 			break;
 		}
@@ -2714,7 +2714,7 @@
 {
 	int ret;
 	if ((ret=down_interruptible(&wc->chansem))) {
-		WARN();
+		WARN_ALWAYS();
 		return ret;
 	}
 	ret = __wctc4xxp_setup_channels(wc);




More information about the dahdi-commits mailing list