From: Hans Verkuil Date: Mon, 22 Sep 2014 14:08:55 +0000 (-0300) Subject: [media] v4l2-ctrls: fix sparse warning X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~317 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a7f1ab37dc8f66cf0ef10f3d3f1b79ac4bc67fc;p=pandora-kernel.git [media] v4l2-ctrls: fix sparse warning The warning is simple: drivers/media/v4l2-core/v4l2-ctrls.c:1685:15: warning: incorrect type in assignment (different address spaces) but the fix isn't. The core problem was that the conversion from user to kernelspace was done at too low a level and that needed to be moved up. That made it possible to drop pointers to v4l2_ext_control from set_ctrl and validate_new and clean up this sparse warning because those functions now always operate on kernelspace pointers. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed