Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6128798ybi; Wed, 31 Jul 2019 08:49:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/7gwU8bbODUpNYep5xuZCEDO1RvPKVefRgIGvGUhnfygsIyxk94I/FasKJubTWk5nHi10 X-Received: by 2002:a62:1652:: with SMTP id 79mr48204796pfw.20.1564588157347; Wed, 31 Jul 2019 08:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564588157; cv=none; d=google.com; s=arc-20160816; b=TTD70YTvmq0bjoyV+99BQQxauVc2WgA3E6wdzZMnGJrRewb83MTa25aRZgV4ivmnEC p4lbkn76cIywlFtwF7QFBmc27O5qJtjNTx8tnqHrGm4kzBceMkUM+Mxyzztb+juZlzWY Pr5Pt3xClWDj1cU3CEh9BH6f26cHOQjh9Pr/LzFSbfKzHpevIatB0fMHBiBu3mzaXZvQ 3fWd/nHxC3haLktU4TJSLrgb+ek09FRFLJAPkwo/mPD65s/dkhvcYZ3PMQKa2k6SPABT gyVDKtGWCuYBxrtrG2pbAFlM6D6mvhpCt/QmD5rWrAK29c9MjlV5HyeCGYkosUIH1Ob6 iFPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=83OSe7y2aU72IIQHUhZp7X/NaI9ahxBDb1zvEgcPWYg=; b=DQW7Fh++NhrO41YogjsDHluOl1fFR9Ixv9gb9/jFnyD8KHffTUpLl2PIpEaYQ1BWZH lky4E6znCijWgPBL0V8Ojc44l41fFJhtFGwuGjQ4JVfaCrdt6dEwsAQ7fKP11gjQANpF uxZVjDY2eZwCm0mG5/M7oDgys8bIEKN5FgEPjRBrLUM35Z4cDA+NpvIb6v9SyKz/Bh66 qnoajYyWZl5TzztWdEna+jdTHtshFGyO+getCtB4EUZD85tV9XZJnXV2V9MYA+Svthoe dSczg2aXv+2k4Kq85jOngUK/Lvm4pP0pPTGqYEAPvomnzgwDn2/foan+2vPdVU3zmTBu 04ew== 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 x3si28257348plv.26.2019.07.31.08.49.02; Wed, 31 Jul 2019 08:49:17 -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 S1729395AbfGaPrw (ORCPT + 99 others); Wed, 31 Jul 2019 11:47:52 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:38105 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727349AbfGaPrv (ORCPT ); Wed, 31 Jul 2019 11:47:51 -0400 Received: by mail-qt1-f193.google.com with SMTP id n11so67033681qtl.5; Wed, 31 Jul 2019 08:47:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=83OSe7y2aU72IIQHUhZp7X/NaI9ahxBDb1zvEgcPWYg=; b=stvDV/xL+VOq1KnvigR23c8LqadzJBpq7gku4pd7eBzYzbbd74+SNY3tPA5WvVQuTy SGzXMdHLU3ITXUfPgnhC3hCyCwOYgDfgl+izJPjZMUTEnCxMrfeS7tpb4spbzl50hAIR zROeaUOOaBW58TSR7H6lLtUyOIBdu23oM7N/4bwba05eCWZd26W4QGbJ5j9gMWUeD2ZJ fDIPs3UBfdppH7m4v3bEAOzgLoTVqJeDdWhKVF4DtGO4rfHMNYooFf8g/paKicylCcG1 B3ikbi1liLsYSnXro7cJrqYRVmUebEqfmexBfPczc4xVkQ8UgxnADFA9etLFevPz0vOS kSVw== X-Gm-Message-State: APjAAAVNGbix6pwlmZtLTjVqNjHbcdKw8d1VJMX0GN8PMvzxOPxRhVGF I0jOA8GZUn+cbDEpm7HHO2liQRYDtaBP682FQN0= X-Received: by 2002:a0c:b758:: with SMTP id q24mr88044697qve.45.1564588070611; Wed, 31 Jul 2019 08:47:50 -0700 (PDT) MIME-Version: 1.0 References: <20190730192552.4014288-1-arnd@arndb.de> <20190730195819.901457-1-arnd@arndb.de> <20190730195819.901457-3-arnd@arndb.de> <20190731105039.GB3488@osiris> In-Reply-To: <20190731105039.GB3488@osiris> From: Arnd Bergmann Date: Wed, 31 Jul 2019 17:47:33 +0200 Message-ID: Subject: Re: [PATCH v5 15/29] compat_ioctl: move tape handling into drivers To: Heiko Carstens Cc: Alexander Viro , Linux FS-devel Mailing List , Linux Kernel Mailing List , "David S. Miller" , Vasily Gorbik , Christian Borntraeger , =?UTF-8?Q?Kai_M=C3=A4kisara?= , "James E.J. Bottomley" , "Martin K. Petersen" , IDE-ML , linux-s390 , linux-scsi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 12:51 PM Heiko Carstens wrote: > > On Tue, Jul 30, 2019 at 09:55:31PM +0200, Arnd Bergmann wrote: > > MTIOCPOS and MTIOCGET are incompatible between 32-bit and 64-bit user > > space, and traditionally have been translated in fs/compat_ioctl.c. > > > > To get rid of that translation handler, move a corresponding > > implementation into each of the four drivers implementing those commands. > > > > The interesting part of that is now in a new linux/mtio.h header that > > wraps the existing uapi/linux/mtio.h header and provides an abstraction > > to let drivers handle both cases easily. Using an in_compat_syscall() > > check, the caller does not have to keep track of whether this was > > called through .unlocked_ioctl() or .compat_ioctl(). > > > > Signed-off-by: Arnd Bergmann > > Besides the two minor things below > > Acked-by: Heiko Carstens Thanks a lot for the reviewed. Both issues are fixed now, and I'm pushing out new git branches after adding the other Acks I got so far. Arnd