From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755858Ab3AKWHU (ORCPT ); Fri, 11 Jan 2013 17:07:20 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:59508 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754607Ab3AKWHT (ORCPT ); Fri, 11 Jan 2013 17:07:19 -0500 Message-ID: <50F08D13.8000706@linaro.org> Date: Fri, 11 Jan 2013 14:07:15 -0800 From: John Stultz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Colin Cross CC: lkml , Greg KH , Serban Constantinescu , =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= , Android Kernel Team Subject: Re: [RFC][PATCH 0/2] staging: alarm-dev: compat_ioctl support References: <1357940918-14941-1-git-send-email-john.stultz@linaro.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/11/2013 02:03 PM, Colin Cross wrote: > On Fri, Jan 11, 2013 at 1:48 PM, John Stultz wrote: >> This is a first-pass at implementing compat_ioctl support for >> Android's alarm-dev driver in staging. >> >> The first patch is some refactoring to cleanup and separate the >> copying of user data from the logic, and the second patch adds >> the compat_ioctl support. >> >> As noted in the patch, the only really squirly bit is the handling >> of ANDROID_ALARM_SET_OLD and ANDROID_ALARM_SET_AND_WAIT_OLD. These >> are present to support existing older Android applications. >> Unfortunately these cause ioctl number aliasing issues with >> the compat ioctls, so on 64bit they are only supported in the >> compat patch (since any existing android app old enough to use >> them are likely 32bit). >> >> I'd appreciate feedback from the Android devs on if this is >> an ok assumption and if it might be reasonable to establish >> some sort of a phase-out timeline for the _OLD ioctl support. > The "support old userspace code" comment for those two ioctls has been > there since pre-Android 1.0. Those apis are not exposed to Android > apps, I don't see any problem deleting them. That's great! I'll rework the patch set to include dropping them. Thanks for the extra insight here! -john