]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: at_hdmac: use %pad format string for dma_addr_t
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Nov 2015 14:18:22 +0000 (15:18 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 03:51:05 +0000 (09:21 +0530)
commit2c5d7407e012721f02741f1adae2b1bdf6ef6449
tree89e76287760faf122bec9cc632ce0311631c81c0
parent268914f4e7a013a4798b5544cce9d9584de99889
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>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h