remoteproc: coredump: Correct argument 2 type for memcpy_fromio
authorPeng Fan <peng.fan@nxp.com>
Wed, 10 Nov 2021 03:21:01 +0000 (11:21 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 17 Nov 2021 16:37:31 +0000 (09:37 -0700)
commit876e0b26ccd211ca92607d83c87cc1f097784c6d
tree56b25f38b76c825888dbca697bafefefe7826a98
parent4da96175014be67c846fd274eace08066e525d75
remoteproc: coredump: Correct argument 2 type for memcpy_fromio

Address the sparse check warning:
>> 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 <lkp@intel.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20211110032101.517487-1-peng.fan@oss.nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/remoteproc_coredump.c