Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3347667yba; Mon, 29 Apr 2019 00:08:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzol07efaowNyZgfJ/WBjIcVoAau4xvXXe+PVFN4gKJ4fxrW8IKN0uB0Xg/XAMwOwcASvz8 X-Received: by 2002:a17:902:e287:: with SMTP id cf7mr60704057plb.217.1556521682688; Mon, 29 Apr 2019 00:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556521682; cv=none; d=google.com; s=arc-20160816; b=Z8oKPS1zkaqWh5LBK9vnbYjwwE2VYPrxnLQ5Ywq2mOgpxlK18ggxmW8g8g0Of3U85n WCYNKWyyES9C+a/BG6jtiKDiQ8Gu1pOKfIGc9K1GaSQc/DmQc44Vt6rpcMXIwpjZvLtS jqvPyjpByAGdsTMiG2lnKMY9SmmMan2aGH3IPtZxubXLV/TSovmKjpKnHSgdqRl94FE0 LOIM/LpVIxtx5DhCcBzIhKRZRgojIIe01BqZmR62ScMKutkZfJkscwR7F7iQp71XpTRf y3y00NJ+wZsErUh1k7oNxnFtz/GhD0aeLiS7HshKdMk8COtMlJyXPc/PWP4TONAdqd4D PGYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=n5WjI5x5XLVs0MimI0c4NARwDOSI7cSNB4PwlCMcY1U=; b=H3dddof6dVrzLuqc6E0OtSypYKbqJZC5bG9cPnXvuX91wR9g34nrZ1qh3Nsfng+gY+ qe8h2yy3x6qI+OBgBKIObp1aTn36F97yFzLgns5NAxwyTNDxxEnANLNAnQSnQPcGifpS c4RcRMWXWl9ThebyOYWzxETWZIxbk6HD6VRMbPtVNPkcKUy1HN+a2aDR5CBHR0bZdxCp +kWH5uP4tnObPR2Zase8hcNouvph8Qo+HyWnO+O6EtFzJwGh8TcB+txcWKqRbBacPAEY WPk63pq452EZC+F3s1NZufhF5eRve5jA2kwYh3v/dzhlbTokEhTZ6tTF8aLEzZEt1lRS iibA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si32381882pfi.21.2019.04.29.00.07.47; Mon, 29 Apr 2019 00:08:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727404AbfD2HFq (ORCPT + 99 others); Mon, 29 Apr 2019 03:05:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:56742 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726589AbfD2HFp (ORCPT ); Mon, 29 Apr 2019 03:05:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1BFA8AE60; Mon, 29 Apr 2019 07:05:44 +0000 (UTC) Date: Mon, 29 Apr 2019 09:05:43 +0200 Message-ID: From: Takashi Iwai To: "Arnd Bergmann" Cc: "Alexander Viro" , , "Vinod Koul" , , , "Jaroslav Kysela" , , Subject: Re: [PATCH v3 20/26] compat_ioctl: remove translation for sound ioctls In-Reply-To: References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202839.248216-1-arnd@arndb.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Apr 2019 10:05:33 +0200, Takashi Iwai wrote: > > On Tue, 16 Apr 2019 22:28:05 +0200, > Arnd Bergmann wrote: > > > > The SNDCTL_* and SOUND_* commands are the old OSS user interface. > > > > I checked all the sound ioctl commands listed in fs/compat_ioctl.c > > to see if we still need the translation handlers. Here is what I > > found: > > > > - sound/oss/ is (almost) gone from the kernel, this is what actually > > needed all the translations > > - The ALSA emulation for OSS correctly handles all compat_ioctl > > commands already. > > - sound/oss/dmasound/ is the last holdout of the original OSS code, > > this is only used on arch/m68k, which has no 64-bit mode and > > hence needs no compat handlers > > - arch/um/drivers/hostaudio_kern.c may run in 64-bit mode with > > 32-bit x86 user space underneath it. This rare corner case is > > the only one that still needs the compat handlers. > > > > By adding a simple redirect of .compat_ioctl to .unlocked_ioctl in the > > UML driver, we can remove all the COMPATIBLE_IOCTL() annotations without > > a change in functionality. For completeness, I'm adding the same thing > > to the dmasound file, knowing that it makes no difference. > > > > The compat_ioctl list contains one comment about SNDCTL_DSP_MAPINBUF and > > SNDCTL_DSP_MAPOUTBUF, which actually would need a translation handler > > if implemented. However, the native implementation just returns -EINVAL, > > so we don't care. > > > > Signed-off-by: Arnd Bergmann > > This looks like a really nice cleanup. Thanks! > > Reviewed-by: Takashi Iwai Is this supposed to be taken via sound git tree, or would you apply over yours? I'm fine in either way. thanks, Takashi