From dcd2ed28c4f5371a9b276422df4ff204b293755b Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 5 Nov 2008 20:17:50 +0000 Subject: Fix warning messages in order to build on 2.6.27. (Closes issue #13757) Patch provided by tzafrir. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5237 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctc4xxp/base.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/dahdi/wctc4xxp') diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 657cabc..900472c 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -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 @@ wctc4xxp_start_dma(struct wcdte *wc) for (i = 0; i < DRING_SIZE; ++i) { if (!(cmd = alloc_cmd())) { - WARN(); + WARN_ALWAYS(); return; } cmd->data_len = SFRAME_SIZE; @@ -2200,7 +2200,7 @@ wctc4xxp_start_dma(struct wcdte *wc) /* 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 @@ wctc4xxp_setup_channels(struct wcdte *wc) { int ret; if ((ret=down_interruptible(&wc->chansem))) { - WARN(); + WARN_ALWAYS(); return ret; } ret = __wctc4xxp_setup_channels(wc); -- cgit v1.2.3