From: Mauro Carvalho Chehab Date: Thu, 1 Oct 2015 22:05:46 +0000 (-0300) Subject: [media] mipi-csis: make sparse happy X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de2ce8fd84f965a270bad28d284932bf20c349be;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] mipi-csis: make sparse happy Fix the namespace issue that causes this warning: drivers/media/platform/exynos4-is/mipi-csis.c:709:17: warning: incorrect type in argument 2 (different address spaces) drivers/media/platform/exynos4-is/mipi-csis.c:709:17: expected void const * drivers/media/platform/exynos4-is/mipi-csis.c:709:17: got void [noderef] * Signed-off-by: Mauro Carvalho Chehab --- 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; rmb(); }