Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp712459imm; Thu, 13 Sep 2018 06:41:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZOsFflxZxQJEIeMrZAyCR/Fj+1+fFYq1wcGN5S4+YFUhA5ZPCB4V/mCMZ9Hw2Q3uZBB9c9 X-Received: by 2002:a62:c008:: with SMTP id x8-v6mr7548485pff.149.1536846096647; Thu, 13 Sep 2018 06:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846096; cv=none; d=google.com; s=arc-20160816; b=Uti428ljDnxqScSv+3Z8+JbpZJpjhuJeKOHs3siMdLjpJxE+45lqP8qgK3FDWvKLDo cAyL8P+j1gPrFTHMzZpYkCow9EpqDIGNHeZrMlAb4/MifEnfCi1eRZoolPp9wNCt4tKR szncW20kWlAJejRQB2Uit2UNleuky9HWKckcRUjsJOZA3hnyAKW/JbguL5rlmBYd5SZw tBZKUGtZRCCXoK8/WvlQi3FnEe8Gf88N5+C4p/x6sic26aIP46mvd8hKXKHniDw5jc6+ btZ6xqCYOwF4oSee6L3VAFVKI5+JveXmvyaGd9Sn64TXiY9Rc4MDyFrx259ThVkWWLg8 mFAA== 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=cK4zOmboE8pS5wmZv9NxYGQQ/VpgrrjqfkWqGwVLfq0=; b=oRQcumgOc+lQIzWshHwOW4JiN5AtbnHzPWLWcDIhzKMbX0R2fvIC46WH/jcYKaZHiG E3jywYyt741IRUpEby87nxLFl5+DqoTUTMOJSGF98r0/UVUJcBKsjkM2eU0xtCumnRqy F1sB48hS2fYBBPGrPw3bI7UDYi2Vj1unWQyqDSgXKdu07+IYqFog/r8QNeulZ9XTS4Uy wdhmfE9Rkq0hqIN9hKHjc+uTlNbBbIyLYLIqIwTMdmni5VE0qskmIr7oXKGMUKyvlIsb kCkGwE6FW7AwfApjHuwNCxiC4qrUb8DpR1sa6UbZ78spdF/NkE+eLzLxEhEr7BdNHCzY JAxA== 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 e20-v6si4254801pgm.172.2018.09.13.06.41.21; Thu, 13 Sep 2018 06:41:36 -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 S1729350AbeIMSrD (ORCPT + 99 others); Thu, 13 Sep 2018 14:47:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:38546 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729334AbeIMSrC (ORCPT ); Thu, 13 Sep 2018 14:47:02 -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 DB33DAE83; Thu, 13 Sep 2018 13:37:30 +0000 (UTC) Date: Thu, 13 Sep 2018 15:37:29 +0200 Message-ID: From: Takashi Iwai To: "Arnd Bergmann" Cc: , "Jeff Dike" , , "Mauro Carvalho Chehab" , , "Richard Weinberger" , "Jaroslav Kysela" , , Subject: Re: [PATCH v2 10/17] compat_ioctl: remove translation for sound ioctls In-Reply-To: <20180912151422.571531-1-arnd@arndb.de> References: <20180912150142.157913-1-arnd@arndb.de> <20180912151422.571531-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/26 (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, 12 Sep 2018 17:13:02 +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 Looks good to me. Reviewed-by: Takashi Iwai thanks, Takashi