diff options
author | Olof Johansson <olof@lixom.net> | 2013-11-13 01:30:43 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-11-13 03:40:48 -0500 |
commit | 40911c7dc0c318f094f7e9b0724db993df82df56 (patch) | |
tree | 73035e1f425713a06191c2230338528826ef99ad /drivers/dma | |
parent | b6d5050cccf6f5b664a9601f4a274175ed6ab0b4 (diff) |
dmaengine: ipu: fix warnings from 64-bit dma_addr_t printouts
This resolves a number of warnings such as the below when building with
64-bit dma_addr_t on arm:
drivers/dma/ipu/ipu_idmac.c:1235:2: warning: format '%x' expects argument
of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
..by upcasting to u64 and using %llx.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ipu/ipu_idmac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index cb9c0bc317e8..128ca143486d 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c | |||
@@ -1232,8 +1232,10 @@ static irqreturn_t idmac_interrupt(int irq, void *dev_id) | |||
1232 | desc = list_entry(ichan->queue.next, struct idmac_tx_desc, list); | 1232 | desc = list_entry(ichan->queue.next, struct idmac_tx_desc, list); |
1233 | descnew = desc; | 1233 | descnew = desc; |
1234 | 1234 | ||
1235 | dev_dbg(dev, "IDMAC irq %d, dma 0x%08x, next dma 0x%08x, current %d, curbuf 0x%08x\n", | 1235 | dev_dbg(dev, "IDMAC irq %d, dma %#llx, next dma %#llx, current %d, curbuf %#x\n", |
1236 | irq, sg_dma_address(*sg), sgnext ? sg_dma_address(sgnext) : 0, ichan->active_buffer, curbuf); | 1236 | irq, (u64)sg_dma_address(*sg), |
1237 | sgnext ? (u64)sg_dma_address(sgnext) : 0, | ||
1238 | ichan->active_buffer, curbuf); | ||
1237 | 1239 | ||
1238 | /* Find the descriptor of sgnext */ | 1240 | /* Find the descriptor of sgnext */ |
1239 | sgnew = idmac_sg_next(ichan, &descnew, *sg); | 1241 | sgnew = idmac_sg_next(ichan, &descnew, *sg); |