remoteproc: coredump: correct argument 2 type for memcpy_fromio
PATCH v2 1/1 remoteproc: coredump: correct argument 2 type for memcpy_fromio
From: Peng Fan <[email protected]>
Address the sparse check warning:
Quoted 1 line
Quoted 1 line
drivers/remoteproc/remoteproc_coredump.c:169:53:
sparse: warning: incorrect type in argument 2 (different address spaces) sparse: expected void const volatile [noderef] __iomem *src sparse: got void *[assigned] ptr
Reported-by kernel test robot <[email protected]>
Signed-off-by Peng Fan <[email protected]>
---
V2:
Per Mathieu's comments, use 'const void __iomem *'
drivers/remoteproc/remoteproc_coredump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/remoteproc/remoteproc_coredump.c +1 -1
@@ -166,7 +166,7 @@ static void rproc_copy_segment(struct rproc *rproc, void *dest,memset (dest,0xff , size); }else {if (is_iomem) -memcpy_fromio (dest, ptr, size); +memcpy_fromio (dest, (const void __iomem *)ptr, size);else memcpy (dest, ptr, size); }
Signature · 1 line
2.25.1