diff options
author | Olof Johansson <olof@lixom.net> | 2013-11-13 01:30:44 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-11-13 03:40:48 -0500 |
commit | c3cc74b2474fad7876e275b2aa30886d708e55c5 (patch) | |
tree | bc348c00e1c513114d10ab18a117b9359b80f82e /drivers/dma/imx-sdma.c | |
parent | 40911c7dc0c318f094f7e9b0724db993df82df56 (diff) |
dma: imx-sdma: Fix warnings for LPAE builds
This resolves a number of warnings such as the below when building with
64-bit dma_addr_t on arm:
drivers/dma/imx-sdma.c:1092:3: warning: format '%x' expects argument of
type 'unsigned int', but argument 6 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/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0e03b3146b32..0c18f6a70ed0 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1089,8 +1089,8 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( | |||
1089 | param &= ~BD_CONT; | 1089 | param &= ~BD_CONT; |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | dev_dbg(sdma->dev, "entry %d: count: %d dma: 0x%08x %s%s\n", | 1092 | dev_dbg(sdma->dev, "entry %d: count: %d dma: %#llx %s%s\n", |
1093 | i, count, sg->dma_address, | 1093 | i, count, (u64)sg->dma_address, |
1094 | param & BD_WRAP ? "wrap" : "", | 1094 | param & BD_WRAP ? "wrap" : "", |
1095 | param & BD_INTR ? " intr" : ""); | 1095 | param & BD_INTR ? " intr" : ""); |
1096 | 1096 | ||
@@ -1163,8 +1163,8 @@ static struct dma_async_tx_descriptor *sdma_prep_dma_cyclic( | |||
1163 | if (i + 1 == num_periods) | 1163 | if (i + 1 == num_periods) |
1164 | param |= BD_WRAP; | 1164 | param |= BD_WRAP; |
1165 | 1165 | ||
1166 | dev_dbg(sdma->dev, "entry %d: count: %d dma: 0x%08x %s%s\n", | 1166 | dev_dbg(sdma->dev, "entry %d: count: %d dma: %#llx %s%s\n", |
1167 | i, period_len, dma_addr, | 1167 | i, period_len, (u64)dma_addr, |
1168 | param & BD_WRAP ? "wrap" : "", | 1168 | param & BD_WRAP ? "wrap" : "", |
1169 | param & BD_INTR ? " intr" : ""); | 1169 | param & BD_INTR ? " intr" : ""); |
1170 | 1170 | ||