From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Andrzej Siewior Subject: [PATCH] dma: cpp41: make it compile with CONFIG_BUG=n Date: Fri, 16 Aug 2013 17:40:55 +0200 Message-ID: <20130816154055.GB3570@breakpoint.cc> References: <20130815165829.6a401f104ee2a98dd48bcb58@canb.auug.org.au> <520D0AD7.6050002@infradead.org> <520E0304.5050906@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:33589 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239Ab3HPPlN (ORCPT ); Fri, 16 Aug 2013 11:41:13 -0400 Content-Disposition: inline In-Reply-To: <520E0304.5050906@ti.com> Sender: linux-next-owner@vger.kernel.org List-ID: To: Felipe Balbi Cc: Randy Dunlap , Roger Quadros , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, USB list , Sebastian Andrzej Siewior , Vinod Koul , Dan Williams From: Sebastian Andrzej Siewior Before Randy figures out that this does not compile with CONFIG_BUG=n here is a fix for it. Signed-off-by: Sebastian Andrzej Siewior --- drivers/dma/cppi41.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index 5dcebca..e696178 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -579,7 +579,7 @@ static int cppi41_tear_down_chan(struct cppi41_channel *c) WARN_ON(!c->is_tx && !(pd0 & TD_DESC_IS_RX)); WARN_ON((pd0 & 0x1f) != c->port_num); } else { - __WARN(); + WARN_ON_ONCE(1); } c->td_seen = 1; } -- 1.8.4.rc2