mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef
[ Upstream commitc77b35ce66
] 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:8a471396d2
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b82db393a9
commit
f01a856edc
@ -657,7 +657,7 @@ done:
|
||||
* entire area by overwriting it with the initial values stored in rproc->clean_table.
|
||||
*/
|
||||
*table_sz = RSC_TBL_SIZE;
|
||||
return (struct resource_table *)ddata->rsc_va;
|
||||
return (__force struct resource_table *)ddata->rsc_va;
|
||||
}
|
||||
|
||||
static const struct rproc_ops st_rproc_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user