drivers/remoteproc/imx_dsp_rproc.c:668:20: sparse: sparse: incorrect type in argument 1 (different address spaces)

From: kernel test robot

Date: Fri Mar 20 2026 - 13:25:37 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0e4f8f1a3d081e834be5fd0a62bdb2554fadd307
commit: a84a1e21c0678032f1185173f816cbb500a87877 remoteproc: imx_dsp_rproc: Fix multiple start/stop operations
date: 3 months ago
config: arm-randconfig-r111-20260320 (https://download.01.org/0day-ci/archive/20260321/202603210118.PhZohwTv-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.4.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260321/202603210118.PhZohwTv-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603210118.PhZohwTv-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
drivers/remoteproc/imx_dsp_rproc.c:653:12: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@
drivers/remoteproc/imx_dsp_rproc.c:653:12: sparse: expected void *va
drivers/remoteproc/imx_dsp_rproc.c:653:12: sparse: got void [noderef] __iomem *
>> drivers/remoteproc/imx_dsp_rproc.c:668:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *io_addr @@ got void *va @@
drivers/remoteproc/imx_dsp_rproc.c:668:20: sparse: expected void volatile [noderef] __iomem *io_addr
drivers/remoteproc/imx_dsp_rproc.c:668:20: sparse: got void *va

vim +668 drivers/remoteproc/imx_dsp_rproc.c

664
665 static int imx_dsp_rproc_mem_release(struct rproc *rproc,
666 struct rproc_mem_entry *mem)
667 {
> 668 iounmap(mem->va);
669
670 return 0;
671 }
672

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki