diff options
author | Andrew Davis <afd@ti.com> | 2024-10-21 15:45:56 -0500 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2024-10-29 11:19:26 -0600 |
commit | 760c69af2cc4c93aa6a58f50f637816657850099 (patch) | |
tree | 8bffc2e88baba1f685804a1d9f14f35725c5e49a /drivers/remoteproc | |
parent | 06cbc5e45317c0521709f85c9046f3fbc57382c2 (diff) | |
download | lwn-760c69af2cc4c93aa6a58f50f637816657850099.tar.gz lwn-760c69af2cc4c93aa6a58f50f637816657850099.zip |
remoteproc: k3-r5: 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-2-afd@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/ti_k3_r5_remoteproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/ti_k3_r5_remoteproc.c index e1fe85e5eba6..6560b7954027 100644 --- a/drivers/remoteproc/ti_k3_r5_remoteproc.c +++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c @@ -717,7 +717,7 @@ static struct resource_table *k3_r5_get_loaded_rsc_table(struct rproc *rproc, * the hard-coded value suffices to support the IPC-only mode. */ *rsc_table_sz = 256; - return (struct resource_table *)kproc->rmem[0].cpu_addr; + return (__force struct resource_table *)kproc->rmem[0].cpu_addr; } /* |