Skip to contentSkip to conversation

Fix pl08x warnings

PATCH New Russell King - ARM Linux 1 participant 1 message Nov 26, 2013 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix pl08x warnings

Okay, I suck at email today.

----- Forwarded message from Russell King - ARM Linux <[email protected]> -----
Date: Tue, 26 Nov 2013 18:11:17 +0000
From: Russell King - ARM Linux <[email protected]>
To: Dan Williams <[email protected]>
Subject: [PATCH] Fix pl08x warnings

drivers/dma/amba-pl08x.c: In function 'pl08x_desc_free':
drivers/dma/amba-pl08x.c:1173:2: warning: passing argument 1 of 'dma_descriptor_unmap' from incompatible pointer type include/linux/dmaengine.h:476:91: note: expected 'struct dma_async_tx_descriptor *' but argument is of type 'struct pl08x_txd *'

Fixes d38a8c622a1b ("dmaengine: prepare for generic 'unmap' data")

---

This was introduced during the last merge window, and this warning is one which should never have been ignored.

 drivers/dma/amba-pl08x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/amba-pl08x.c +1 -1
index 68fe0e9661f8..1c4af965344b 100644
@@ -1170,7 +1170,7 @@ static void pl08x_desc_free(struct virt_dma_desc *vd)
 	struct pl08x_txd *txd = to_pl08x_txd(&vd->tx);
 	struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan);
 
-	dma_descriptor_unmap(txd);
+	dma_descriptor_unmap(&vd->tx);
 	if (!txd->done)
 		pl08x_release_mux(plchan);
 

----- End forwarded message -----