dma: ste_dma: Fix warning when CONFIG_ARM_LPAE=y
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 22 Aug 2013 00:34:02 +0000 (21:34 -0300)
committerVinod Koul <vinod.koul@intel.com>
Sun, 25 Aug 2013 10:47:27 +0000 (16:17 +0530)
commit3a919d5b43e459517492eb0f664b120877dfdd79
tree734f6085a78d1b8e4c41b78481f67b767309bfdf
parent4d1b80bf7a5ae9829b8c741bfab7d9e03533e6b1
dma: ste_dma: Fix warning when CONFIG_ARM_LPAE=y

When CONFIG_ARM_LPAE=y the following build warning are generated:

drivers/dma/ste_dma40.c:3228:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
drivers/dma/ste_dma40.c:3582:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]
drivers/dma/ste_dma40.c:3582:3: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' [-Wformat]
drivers/dma/ste_dma40.c:3593:5: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' [-Wformat]

According to Documentation/printk-formats.txt '%pa' can be used to properly
print 'resource_size_t'.

Also, for printing memory region the '%pr' is more convenient.

Reported-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c