diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-08-20 18:37:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 09:29:27 -0400 |
commit | 4d1afa51e957a48db9663e74816c411e70b8d15e (patch) | |
tree | fb9c7189718373a6c6949ff2204fb5eba62ce8b2 /drivers/media/v4l2-core/v4l2-ioctl.c | |
parent | d778d258b7850cf803378211011d38255f11107b (diff) |
[media] v4l2-ioctl: fix sparse warnings
drivers/media/v4l2-core/v4l2-ioctl.c:1156:53: warning: incorrect type in initializer (different address spaces)
drivers/media/v4l2-core/v4l2-ioctl.c:1158:42: warning: incorrect type in initializer (different address spaces)
drivers/media/v4l2-core/v4l2-ioctl.c:1161:34: warning: incorrect type in assignment (different address spaces)
drivers/media/v4l2-core/v4l2-ioctl.c:1163:35: warning: incorrect type in assignment (different address spaces)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index d15e16737eef..46f4c0413d7d 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c | |||
@@ -1153,9 +1153,9 @@ static int v4l_g_fmt(const struct v4l2_ioctl_ops *ops, | |||
1153 | switch (p->type) { | 1153 | switch (p->type) { |
1154 | case V4L2_BUF_TYPE_VIDEO_OVERLAY: | 1154 | case V4L2_BUF_TYPE_VIDEO_OVERLAY: |
1155 | case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY: { | 1155 | case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY: { |
1156 | struct v4l2_clip *clips = p->fmt.win.clips; | 1156 | struct v4l2_clip __user *clips = p->fmt.win.clips; |
1157 | u32 clipcount = p->fmt.win.clipcount; | 1157 | u32 clipcount = p->fmt.win.clipcount; |
1158 | void *bitmap = p->fmt.win.bitmap; | 1158 | void __user *bitmap = p->fmt.win.bitmap; |
1159 | 1159 | ||
1160 | memset(&p->fmt, 0, sizeof(p->fmt)); | 1160 | memset(&p->fmt, 0, sizeof(p->fmt)); |
1161 | p->fmt.win.clips = clips; | 1161 | p->fmt.win.clips = clips; |