Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbdHJXwQ (ORCPT ); Thu, 10 Aug 2017 19:52:16 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:57027 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750735AbdHJXwO (ORCPT ); Thu, 10 Aug 2017 19:52:14 -0400 Date: Thu, 10 Aug 2017 20:52:02 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Hans Verkuil , Stanimir Varbanov , Laurent Pinchart , Sakari Ailus , Hans Verkuil , Kieran Bingham , Tomasz Figa Subject: Re: [PATCH 0/3] v4l2-compat-ioctl32.c: better detect pointer controls Message-ID: <20170810205202.7fa1179c@vento.lan> In-Reply-To: References: Organization: Samsung X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 30 Em Thu, 10 Aug 2017 20:45:10 -0300 Mauro Carvalho Chehab escreveu: > In the past, only string controls were pointers. That changed when compounded > types got added, but the compat32 code was not updated. > > We could just add those controls there, but maintaining it is flaw, as we > often forget about the compat code. So, instead, rely on the control type, > as this is always updated when new controls are added. > > As both v4l2-ctrl and compat32 code are at videodev.ko module, we can > move the ctrl_is_pointer() helper function to v4l2-ctrl.c. > > Mauro Carvalho Chehab (3): > media: v4l2-ctrls.h: better document the arguments for v4l2_ctrl_fill > media: v4l2-ctrls: prepare the function to be used by compat32 code > media: compat32: reimplement ctrl_is_pointer() > > drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 18 +--------- > drivers/media/v4l2-core/v4l2-ctrls.c | 49 +++++++++++++++++++++++++-- > include/media/v4l2-ctrls.h | 28 ++++++++++----- > 3 files changed, 67 insertions(+), 28 deletions(-) > Sorry, sent this series to the wrong mailing list. Will resend to the right one. Thanks, Mauro