remoteproc: rcar_rproc: silince address space sparse warning
Subsystems (2)
PATCH 1/1 remoteproc: rcar_rproc: silince address space sparse warning
Fix sparse warnings,
drivers/remoteproc/st_remoteproc.c:98:12: sparse: sparse: incorrect type in assignment (different address spaces) @@
expected void *va @@ got void [noderef] __iomem * @@
drivers/remoteproc/st_remoteproc.c:98:12: sparse: expected void *va
drivers/remoteproc/st_remoteproc.c:98:12: sparse: got void [noderef] __iomem *
...
drivers/remoteproc/st_remoteproc.c:114:20: sparse: expected void volatile [noderef] __iomem *io_addr
drivers/remoteproc/st_remoteproc.c:114:20: sparse: got void *va
Add __iomem to io address space 'va' to fix it.
---
note: the commit d803336abdbc "(ARM: mm: kill unused runtime hook arch_iounmap())" won't introduce the warning, but lkp report issue to me many times, let's fix it.
drivers/remoteproc/rcar_rproc.c | 2 +- include/linux/remoteproc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/remoteproc/rcar_rproc.c +1 -1
@@ -22,7 +22,7 @@ static int rcar_rproc_mem_alloc(struct rproc *rproc, struct rproc_mem_entry *mem) {struct device *dev = &rproc->dev; -void *va; +void __iomem *va;dev_dbg (dev,"map memory: %pa+%zx\n" , &mem->dma, mem->len); va =ioremap_wc (mem->dma, mem->len);
include/linux/remoteproc.h +1 -1
@@ -330,7 +330,7 @@ struct rproc;* @alloc: specific memory allocator function */ struct rproc_mem_entry { -void *va; +void __iomem *va;bool is_iomem;dma_addr_t dma;size_t len;
Signature · 1 line
2.35.3
PATCH 1/1 remoteproc: rcar_rproc: silince address space sparse warning
Fix sparse warnings,
drivers/remoteproc/st_remoteproc.c:98:12: sparse: sparse: incorrect type in assignment (different address spaces) @@
expected void *va @@ got void [noderef] __iomem * @@
drivers/remoteproc/st_remoteproc.c:98:12: sparse: expected void *va
drivers/remoteproc/st_remoteproc.c:98:12: sparse: got void [noderef] __iomem *
...
drivers/remoteproc/st_remoteproc.c:114:20: sparse: expected void volatile [noderef] __iomem *io_addr
drivers/remoteproc/st_remoteproc.c:114:20: sparse: got void *va
Add __iomem to io address space 'va' to fix it.
---
note: the commit d803336abdbc "(ARM: mm: kill unused runtime hook arch_iounmap())" won't introduce the warning, but lkp report issue to me many times, let's fix it.
drivers/remoteproc/rcar_rproc.c | 2 +- include/linux/remoteproc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/remoteproc/rcar_rproc.c +1 -1
@@ -22,7 +22,7 @@ static int rcar_rproc_mem_alloc(struct rproc *rproc, struct rproc_mem_entry *mem) {struct device *dev = &rproc->dev; -void *va; +void __iomem *va;dev_dbg (dev,"map memory: %pa+%zx\n" , &mem->dma, mem->len); va =ioremap_wc (mem->dma, mem->len);
include/linux/remoteproc.h +1 -1
@@ -330,7 +330,7 @@ struct rproc;* @alloc: specific memory allocator function */ struct rproc_mem_entry { -void *va; +void __iomem *va;bool is_iomem;dma_addr_t dma;size_t len;
Signature · 1 line
2.35.3
ignore this one, send the patch twice.
Quoted 48 lines · Kefeng Wang
Fix sparse warnings,
drivers/remoteproc/st_remoteproc.c:98:12: sparse: sparse: incorrect type in assignment (different address spaces) @@
expected void *va @@ got void [noderef]__iomem* @@
drivers/remoteproc/st_remoteproc.c:98:12: sparse: expected void *va
drivers/remoteproc/st_remoteproc.c:98:12: sparse: got void [noderef]__iomem*
...
drivers/remoteproc/st_remoteproc.c:114:20: sparse: expected void volatile [noderef]__iomem*io_addr
drivers/remoteproc/st_remoteproc.c:114:20: sparse: got void *vaAdd
__iomemto io address space 'va' to fix it.Reported-by kernel test robot <[email protected]>Signed-off-by Kefeng Wang <[email protected]>---
note: the commitd803336abdbc"(ARM: mm: kill unused runtime hookarch_iounmap())" won't introduce the warning, but lkp report issue to me many times, let's fix it.drivers/remoteproc/rcar_rproc.c | 2 +- include/linux/remoteproc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/remoteproc/rcar_rproc.c +1
-1@@ -22,7 +22,7 @@ static int rcar_rproc_mem_alloc(struct rproc *rproc, struct rproc_mem_entry *mem) {struct device *dev = &rproc->dev; -void *va; +void __iomem *va;dev_dbg (dev,"map memory: %pa+%zx\n" , &mem->dma, mem->len); va =ioremap_wc (mem->dma, mem->len);include/linux/remoteproc.h +1
-1@@ -330,7 +330,7 @@ struct rproc;* @alloc: specific memory allocator function */ struct rproc_mem_entry { -void *va; +void __iomem *va;bool is_iomem;dma_addr_t dma;size_t len;
Mathieu Poirier
maintainerQuoted 13 lines · Kefeng Wang
Fix sparse warnings,
drivers/remoteproc/st_remoteproc.c:98:12: sparse: sparse: incorrect type in assignment (different address spaces) @@
expected void *va @@ got void [noderef]__iomem* @@
drivers/remoteproc/st_remoteproc.c:98:12: sparse: expected void *va
drivers/remoteproc/st_remoteproc.c:98:12: sparse: got void [noderef]__iomem*
...
drivers/remoteproc/st_remoteproc.c:114:20: sparse: expected void volatile [noderef]__iomem*io_addr
drivers/remoteproc/st_remoteproc.c:114:20: sparse: got void *vaAdd
__iomemto io address space 'va' to fix it.Reported-by kernel test robot <[email protected]>Signed-off-by Kefeng Wang <[email protected]>
Quoted 9 lines
---
note: the commitd803336abdbc"(ARM: mm: kill unused runtime hookarch_iounmap())" won't introduce the warning, but lkp report issue to me many times, let's fix it.drivers/remoteproc/rcar_rproc.c | 2 +- include/linux/remoteproc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
$ ./scripts/checkpatch.pl _PATCH_remoteproc_rcar_rproc_silince_address_space_sparse_warning.patch WARNING: A patch subject line should describe the change not the tool that found it #9: Subject: [PATCH] remoteproc: rcar_rproc: silince address space sparse warning
total: 0 errors, 1 warnings, 16 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
_PATCH_remoteproc_rcar_rproc_silince_address_space_sparse_warning.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Quoted 29 lines
drivers/remoteproc/rcar_rproc.c +1
-1@@ -22,7 +22,7 @@ static int rcar_rproc_mem_alloc(struct rproc *rproc, struct rproc_mem_entry *mem) {struct device *dev = &rproc->dev; -void *va; +void __iomem *va;dev_dbg (dev,"map memory: %pa+%zx\n" , &mem->dma, mem->len); va =ioremap_wc (mem->dma, mem->len);include/linux/remoteproc.h +1
-1@@ -330,7 +330,7 @@ struct rproc;* @alloc: specific memory allocator function */ struct rproc_mem_entry { -void *va; +void __iomem *va;bool is_iomem;dma_addr_t dma;size_t len;Signature · 1 line
2.35.3