From: Mauro Carvalho Chehab Date: Wed, 24 Sep 2014 14:17:06 +0000 (-0300) Subject: [media] sta2x11_vip: fix address space casting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87f4ebcd0693f6de14f60cf7bf9821a005b5850f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] sta2x11_vip: fix address space casting drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:1140:30: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:1140:30: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:1140:30: got void volatile [noderef] *iomem drivers/media/pci/sta2x11/sta2x11_vip.c:1184:30: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:1184:30: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:1184:30: got void volatile [noderef] *iomem drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: warning: incorrect type in argument 1 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:226:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: warning: incorrect type in argument 2 (different modifiers) drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: expected void [noderef] * drivers/media/pci/sta2x11/sta2x11_vip.c:221:38: got void volatile [noderef] * Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/sta2x11/sta2x11_vip.c b/drivers/media/pci/sta2x11/sta2x11_vip.c index 365bd21301ba..22450f583da1 100644 --- a/drivers/media/pci/sta2x11/sta2x11_vip.c +++ b/drivers/media/pci/sta2x11/sta2x11_vip.c @@ -152,7 +152,7 @@ struct sta2x11_vip { int tcount, bcount; int overflow; - void *iomem; /* I/O Memory */ + void __iomem *iomem; /* I/O Memory */ struct vip_config *config; };