]> git.baikalelectronics.ru Git - kernel.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)
commit822b370140402e3a47fa14902821041f4a5ce1ce
tree89e76287760faf122bec9cc632ce0311631c81c0
parent727dce570efe923441729712c2564c07be582626
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