Skip to content

Commit 3a8c30e

Browse files
glneomathieupoirier
authored andcommitted
remoteproc: k3-dsp: Force cast from iomem address space
These memory regions are mapped as Normal Non-Cached which on does not have the normal IO address space limitations and so this cast is safe. Add '__force' to explicitly specify that the cast is intentional to remove a sparse check warning. Signed-off-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20241021204557.929823-3-afd@ti.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 760c69a commit 3a8c30e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/remoteproc/ti_k3_dsp_remoteproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static struct resource_table *k3_dsp_get_loaded_rsc_table(struct rproc *rproc,
403403
* the hard-coded value suffices to support the IPC-only mode.
404404
*/
405405
*rsc_table_sz = 256;
406-
return (struct resource_table *)kproc->rmem[0].cpu_addr;
406+
return (__force struct resource_table *)kproc->rmem[0].cpu_addr;
407407
}
408408

409409
/*

0 commit comments

Comments
 (0)