diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-12 15:18:22 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-11-16 09:21:05 +0530 |
commit | 2c5d7407e012721f02741f1adae2b1bdf6ef6449 (patch) | |
tree | 89e76287760faf122bec9cc632ce0311631c81c0 /include | |
parent | 268914f4e7a013a4798b5544cce9d9584de99889 (diff) | |
download | linux-stable-2c5d7407e012721f02741f1adae2b1bdf6ef6449.tar.gz linux-stable-2c5d7407e012721f02741f1adae2b1bdf6ef6449.tar.bz2 linux-stable-2c5d7407e012721f02741f1adae2b1bdf6ef6449.zip |
dmaengine: at_hdmac: use %pad format string for dma_addr_t
dma_addr_t may be defined as 32 or 64 bit depending on configuration,
so it cannot be printed using the normal format strings, as
gcc correctly warns:
drivers/dma/at_hdmac.c: In function 'atc_prep_dma_interleaved':
drivers/dma/at_hdmac.c:731:28: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]
This changes the format strings to use the special "%pad" format
string that prints a dma_addr_t, and changes the arguments so we
pass the address by reference as required.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions