remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_r...
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Wed, 17 Jan 2024 13:53:12 +0000 (14:53 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 23 Jan 2024 18:48:03 +0000 (11:48 -0700)
commitc77b35ce66af25bdd6fde60b62e35b9b316ea5c2
treee67966dc4da777fcf9dd76db4ac4088dd2d822da
parent32381bbccba4c21145c571701f8f7fb1d9b3a92e
remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef

The sparse tool complains about the remove of the _iomem attribute.

stm32_rproc.c:660:17: warning: cast removes address space '__iomem' of expression

Add '__force' to explicitly specify that the cast is intentional.
This conversion is necessary to cast to addresses pointer,
which are then managed by the remoteproc core as a pointer to a
resource_table structure.

Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops")
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20240117135312.3381936-3-arnaud.pouliquen@foss.st.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/stm32_rproc.c