]> git.baikalelectronics.ru Git - kernel.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)
commit90eb9c405b97a2e3f6ad0eb4f8719658819c36d0
tree9a3f13d3f72f70f4e65f6668a2f01bdfb3eedcb5
parent1ea1255ec85463f345271aef1a76df2a6a5081b7
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