[PATCH] rpmsg: fix build warning when compiling 64-bit
arnd at arndb.de
Wed Feb 29 09:55:20 EST 2012
On Wednesday 29 February 2012, Mark Asselstine wrote:
> dev_dbg() in rpmsg_probe() made use of the %x formatting
> which expects an 'unsigned int' which dma_addr_t is not
> when compiling for 64-bit. Casting to a 'void *' and
> using %p will avoid this and not force an upcast to a
> 64-bit value for 32-bit builds.
This does not work on 32-bit platforms with a 64-bit dma_addr_t
though. Better cast to unsigned long long and print using 0x%llx.
More information about the linux-arm-kernel