From: Mauro Carvalho Chehab Date: Fri, 22 Aug 2014 10:53:27 +0000 (-0500) Subject: [media] atmel-isi: Fix a truncate warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9842a417d46bf40f2d460120016b6392d3ac32c9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] atmel-isi: Fix a truncate warning drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming': drivers/media/platform/soc_camera/atmel-isi.c:397:26: warning: large integer implicitly truncated to unsigned type [-Woverflow] isi_writel(isi, ISI_INTDIS, ~0UL); ^ Reported-by: kbuild test robot Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index f87012b15b28..96a4b112e1ca 100644 --- a/drivers/media/platform/soc_camera/atmel-isi.c +++ b/drivers/media/platform/soc_camera/atmel-isi.c @@ -394,7 +394,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count) return ret; } /* Disable all interrupts */ - isi_writel(isi, ISI_INTDIS, ~0UL); + isi_writel(isi, ISI_INTDIS, (u32)~0UL); spin_lock_irq(&isi->lock); /* Clear any pending interrupt */