]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
remoteproc: k3-r5: Force cast from iomem address space
authorAndrew Davis <afd@ti.com>
Mon, 21 Oct 2024 20:45:56 +0000 (15:45 -0500)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 29 Oct 2024 17:19:26 +0000 (11:19 -0600)
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>
drivers/remoteproc/ti_k3_r5_remoteproc.c

index e1fe85e5eba6a49db387bc5cea1ac5cdc9110ba6..6560b7954027f2fc0e6d8621f798b9040e7dfad7 100644 (file)
@@ -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;
 }
 
 /*