]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Fix use of format specifyer
authorEmil Goode <emilgoode@gmail.com>
Fri, 28 Sep 2012 15:35:06 +0000 (17:35 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 2 Oct 2012 08:14:43 +0000 (10:14 +0200)
commit43444a3abd18074fedc39ea93b2bae81f85c0776
tree9fee166f4ee51906db2ff787c3f7453837f0b563
parent60dc9bb7e2d746d7392a97c39df2560b9a7df156
remoteproc: Fix use of format specifyer

The dma_addr_t type can be either u32 or u64 depending on
the configuration. We should use a format specifyer for the
larger type and explicitly cast to it.

Sparse warnings:
drivers/remoteproc/remoteproc_core.c:234:2: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 6 has type ‘dma_addr_t’ [-Wformat]

drivers/remoteproc/remoteproc_core.c:596:2: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 5 has type ‘dma_addr_t’ [-Wformat]

drivers/remoteproc/remoteproc_core.c:634:3:
warning: format ‘%x’ expects argument of type ‘unsigned int’,
but argument 5 has type ‘dma_addr_t’ [-Wformat]

Signed-off-by: Emil Goode <emilgoode@gmail.com>
[fix commit log typos]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c