]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/dma/sa11x0-dma.c
dmaengine: sa11x0: use correct print specifiers for dma_addr_t
authorVinod Koul <vinod.koul@intel.com>
Wed, 14 Sep 2016 09:45:43 +0000 (15:15 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 16:58:42 +0000 (22:28 +0530)
commitf92e934d57518ddb5ea9fbdac06c19091aa1316e
treeadc3d952ee607dc3e768b78f31c87e222d19d54b
parent6e450376e5877f2671db552a7693e9325e31a1cb
dmaengine: sa11x0: use correct print specifiers for dma_addr_t

This driver when compiled on 64 bits gave warnings:

drivers/dma/sa11x0-dma.c:466:27: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t' [-Wformat=]
drivers/dma/sa11x0-dma.c:554:31: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
drivers/dma/sa11x0-dma.c:696:34: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]

We should use %pad to print 'dma_addr_t' values.

Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sa11x0-dma.c