aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorEmil Goode <emilgoode@gmail.com>2013-06-22 07:02:52 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-28 14:07:55 -0400
commit12d866ecd008ad8c9b818836fe84994ac8f80e18 (patch)
tree77e512e7d543067039226062fadd48ebdbab3a62 /drivers/media
parentfd8d30bf20db099eec4d7f7e678e6d6fa8e492b7 (diff)
[media] saa7134: Fix sparse warnings by adding __user annotation
Adding a __user annotation fixes the following sparse warnings. drivers/media/pci/saa7134/saa7134-video.c:1578:45: warning: incorrect type in initializer (different address spaces) drivers/media/pci/saa7134/saa7134-video.c:1578:45: expected struct v4l2_clip *clips drivers/media/pci/saa7134/saa7134-video.c:1578:45: got struct v4l2_clip [noderef] <asn:1>*clips drivers/media/pci/saa7134/saa7134-video.c:1589:26: warning: incorrect type in assignment (different address spaces) drivers/media/pci/saa7134/saa7134-video.c:1589:26: expected struct v4l2_clip [noderef] <asn:1>*clips drivers/media/pci/saa7134/saa7134-video.c:1589:26: got struct v4l2_clip *clips Signed-off-by: Emil Goode <emilgoode@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/pci/saa7134/saa7134-video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c
index e3457aea6a33..e12bbd8c3f0b 100644
--- a/drivers/media/pci/saa7134/saa7134-video.c
+++ b/drivers/media/pci/saa7134/saa7134-video.c
@@ -1575,7 +1575,7 @@ static int saa7134_g_fmt_vid_overlay(struct file *file, void *priv,
1575{ 1575{
1576 struct saa7134_fh *fh = priv; 1576 struct saa7134_fh *fh = priv;
1577 struct saa7134_dev *dev = fh->dev; 1577 struct saa7134_dev *dev = fh->dev;
1578 struct v4l2_clip *clips = f->fmt.win.clips; 1578 struct v4l2_clip __user *clips = f->fmt.win.clips;
1579 u32 clipcount = f->fmt.win.clipcount; 1579 u32 clipcount = f->fmt.win.clipcount;
1580 int err = 0; 1580 int err = 0;
1581 int i; 1581 int i;