[PATCH 5/7] [media] mipi-csis: make sparse happy
Arnd Bergmann
arnd at arndb.de
Fri Oct 2 15:25:57 PDT 2015
On Thursday 01 October 2015 19:17:27 Mauro Carvalho Chehab wrote:
> diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c
> index d74e1bec3d86..4b85105dc159 100644
> --- a/drivers/media/platform/exynos4-is/mipi-csis.c
> +++ b/drivers/media/platform/exynos4-is/mipi-csis.c
> @@ -706,7 +706,8 @@ static irqreturn_t s5pcsis_irq_handler(int irq, void *dev_id)
> else
> offset = S5PCSIS_PKTDATA_ODD;
>
> - memcpy(pktbuf->data, state->regs + offset, pktbuf->len);
> + memcpy(pktbuf->data, (u8 __force *)state->regs + offset,
> + pktbuf->len);
> pktbuf->data = NULL;
>
I think this is what memcpy_toio() is meant for.
Arnd
More information about the linux-arm-kernel
mailing list