]> Git Repo - linux.git/commit
remoteproc: stm32: fix phys_addr_t format string
authorArnd Bergmann <[email protected]>
Wed, 21 Apr 2021 14:00:40 +0000 (16:00 +0200)
committerBjorn Andersson <[email protected]>
Fri, 28 May 2021 03:27:28 +0000 (22:27 -0500)
commit3e25e407a1c93b53a87a7743ea0cd4703d3985b7
tree786e3af8963bb65aa9a0d2ce91c4b679cfe0d625
parentee99ee7c929c3e7484b663c4b7da91ab1f050d5b
remoteproc: stm32: fix phys_addr_t format string

A phys_addr_t may be wider than an int or pointer:

drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_da_to_pa':
drivers/remoteproc/stm32_rproc.c:583:30: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Werror=format=]
  583 |                 dev_dbg(dev, "da %llx to pa %#x\n", da, *pa);

Print it by reference using the special %pap format string.

Reviewed-by: Arnaud Pouliquen <[email protected]>
Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops")
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
drivers/remoteproc/stm32_rproc.c
This page took 0.054903 seconds and 4 git commands to generate.