Skip to contentSkip to conversation

DMA: remove dma_async_memcpy_complete() macro

PATCH RESEND New Bartlomiej Zolnierkiewicz 1 participant 1 message Dec 5, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 2/2 DMA: remove dma_async_memcpy_complete() macro

From: Bartlomiej Zolnierkiewicz <[email protected]>
Subject: [PATCH 2/2] DMA: remove dma_async_memcpy_complete() macro

Just use dma_async_is_tx_complete() directly.

---
 include/linux/dmaengine.h |    5 +----
 net/ipv4/tcp.c            |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
include/linux/dmaengine.h +1 -4
Index: b/include/linux/dmaengine.h
===================================================================
@@ -927,16 +927,13 @@ static inline enum dma_status dma_async_
 	return status;
 }
 
-#define dma_async_memcpy_complete(chan, cookie, last, used)\
-	dma_async_is_tx_complete(chan, cookie, last, used)
-
 /**
  * dma_async_is_complete - test a cookie against chan state
  * @cookie: transaction identifier to test status of
  * @last_complete: last know completed transaction
  * @last_used: last cookie value handed out
  *
- * dma_async_is_complete() is used in dma_async_memcpy_complete()
+ * dma_async_is_complete() is used in dma_async_is_tx_complete()
  * the test logic is separated for lightweight testing of multiple cookies
  */
 static inline enum dma_status dma_async_is_complete(dma_cookie_t cookie,
net/ipv4/tcp.c +1 -1
Index: b/net/ipv4/tcp.c
===================================================================
@@ -1413,7 +1413,7 @@ static void tcp_service_net_dma(struct s
 	dma_async_issue_pending(tp->ucopy.dma_chan);
 
 	do {
-		if (dma_async_memcpy_complete(tp->ucopy.dma_chan,
+		if (dma_async_is_tx_complete(tp->ucopy.dma_chan,
 					      last_issued, &done,
 					      &used) == DMA_SUCCESS) {
 			/* Safe to free early-copied skbs now */