]> git.itanic.dy.fi Git - linux-stable/commit
remoteproc: stm32: Fix incorrect type in assignment for va
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Wed, 17 Jan 2024 13:53:11 +0000 (14:53 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:21:34 +0000 (18:21 -0400)
commitdd68756ae3511c835e881f1786e91c6dce1cf011
treec81a75342ac8a48f57b75d4af94d3fac2ba616b5
parenta48c24ccc6b9c4bc087a59303310afa9c0ad976f
remoteproc: stm32: Fix incorrect type in assignment for va

[ Upstream commit 32381bbccba4c21145c571701f8f7fb1d9b3a92e ]

The sparse tool complains about the attribute conversion between
a _iomem void * and a void *:

stm32_rproc.c:122:12: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *va @@     got void [noderef] __iomem * @@
stm32_rproc.c:122:12: sparse:     expected void *va
stm32_rproc.c:122:12: sparse:     got void [noderef] __iomem *

Add '__force' to explicitly specify that the cast is intentional.
This conversion is necessary to cast to virtual addresses pointer,used,
by the remoteproc core.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312150052.HCiNKlqB-lkp@intel.com/
Fixes: 13140de09cc2 ("remoteproc: stm32: add an ST stm32_rproc driver")
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20240117135312.3381936-2-arnaud.pouliquen@foss.st.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/stm32_rproc.c