remoteproc: stm32: Fix incorrect type in assignment for va
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Wed, 17 Jan 2024 13:53:11 +0000 (14:53 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 23 Jan 2024 18:46:18 +0000 (11:46 -0700)
commit32381bbccba4c21145c571701f8f7fb1d9b3a92e
tree1bc0a27184559109303ad50f134032f9bfdba854
parentb327c72753d6a78de37aed6c35756f2ef62897ee
remoteproc: stm32: Fix incorrect type in assignment for va

The sparse tool complains about the attribute conversion between
a _iomem void * and a void *:

stm32_rproc.c:122:12: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *va @@     got void [noderef] __iomem * @@
stm32_rproc.c:122:12: sparse:     expected void *va
stm32_rproc.c:122:12: sparse:     got void [noderef] __iomem *

Add '__force' to explicitly specify that the cast is intentional.
This conversion is necessary to cast to virtual addresses pointer,used,
by the remoteproc core.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312150052.HCiNKlqB-lkp@intel.com/
Fixes: 13140de09cc2 ("remoteproc: stm32: add an ST stm32_rproc driver")
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20240117135312.3381936-2-arnaud.pouliquen@foss.st.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/stm32_rproc.c