]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DMA: shdma: Fix warnings due to improper casts and printk formats
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 11 Dec 2013 14:29:15 +0000 (15:29 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Mar 2014 06:05:23 +0000 (11:35 +0530)
commit42e4a12a0d92d09de66d8b5b2c85855b8051c15e
tree9a3f13d3f72f70f4e65f6668a2f01bdfb3eedcb5
parentd6be34fbd39b7d577d25cb4edec538e8990ba07c
DMA: shdma: Fix warnings due to improper casts and printk formats

Use the %zu and %pad printk specifiers to print size_t and dma_addr_t
variables, and cast pointers to uintptr_t instead of unsigned int where
applicable. This fixes warnings on platforms where pointers and/or
dma_addr_t have a different size than int

Cc: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/shdma-base.c
drivers/dma/sh/shdma-of.c
drivers/dma/sh/sudmac.c