Re: [REVIEW PATCH for v3.15 4/4] v4l2-ioctl.c: fix sparse __user-related warnings

2014-03-17 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Saturday 15 March 2014 14:08:03 Hans Verkuil wrote: > From: Hans Verkuil > > Drop the use of __user in the user_ptr variable since the v4l2 structs are > actually defined without __user, instead cast to a __user pointer only > there where it is really needed

[REVIEW PATCH for v3.15 4/4] v4l2-ioctl.c: fix sparse __user-related warnings

2014-03-15 Thread Hans Verkuil
From: Hans Verkuil Drop the use of __user in the user_ptr variable since the v4l2 structs are actually defined without __user, instead cast to a __user pointer only there where it is really needed: in the copy_to/from_user calls. Also remove unnecessary casts in check_array_args and replace a wr