From: Sebastian Andrzej Siewior Date: Fri, 16 Aug 2013 15:40:55 +0000 (+0200) Subject: dma: cpp41: make it compile with CONFIG_BUG=n X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bd2fbf3a5602d9721b82e4fc71a68167f3a7ec86;p=linux-beck.git dma: cpp41: make it compile with CONFIG_BUG=n Before Randy figures out that this does not compile with CONFIG_BUG=n here is a fix for it. Acked-by: Vinod Koul Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index 5dcebca37760..e69617889953 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; }