From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from osg.samsung.com ([64.30.133.232]:65454 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753146AbdLMOaK (ORCPT ); Wed, 13 Dec 2017 09:30:10 -0500 Date: Wed, 13 Dec 2017 12:30:03 -0200 From: Mauro Carvalho Chehab To: Jaedon Shin Cc: Shuah Khan , Colin Ian King , Satendra Singh Thakur , linux-media@vger.kernel.org, Michael Ira Krufky , Sean Young Subject: Re: [PATCH 0/3] Add support compat in dvb_frontend.c Message-ID: <20171213123003.72f11baf@vento.lan> In-Reply-To: <20171202055047.7613db42@vento.lan> References: <20171201123130.23128-1-jaedon.shin@gmail.com> <20171202055047.7613db42@vento.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Em Sat, 2 Dec 2017 05:50:47 -0200 Mauro Carvalho Chehab escreveu: > Hi Jaedon, > > Em Fri, 1 Dec 2017 21:31:27 +0900 > Jaedon Shin escreveu: > > > This patch series supports compat ioctl for 32-bit user space applications > > in 64-bit system. > > > > Jaedon Shin (3): > > media: dvb_frontend: Add unlocked_ioctl in dvb_frontend.c > > media: dvb_frontend: Add compat_ioctl callback > > media: dvb_frontend: Add commands implementation for compat ioct > > Thanks for the series. Yeah, indeed we need something like that. > > Yet, I suspect that you should also move the logic inside > dvb_frontend_handle_ioctl() with copies from/to userspace. > > We don't want the logic there to be called when a 32-bit userspace > copy happens, as it should now use the new compat32 code. Nevermind. After reviewing it carefully, the way you handled is OK. It seems that only thing you missed were to add an include to linux/compat.h. I'll add it and apply this patchset. Thanks, Mauro