Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17517663ybl; Thu, 2 Jan 2020 07:00:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzIcGhR5p97w1fpl+KwsWAFgUDSf1XOyCY9clblBOG9z70ugk+1QWX0Awu2tpIS+Zjo9TMt X-Received: by 2002:a9d:7592:: with SMTP id s18mr96147432otk.130.1577977206462; Thu, 02 Jan 2020 07:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577977206; cv=none; d=google.com; s=arc-20160816; b=NFvSJrfnaOH3UDi6oW1ORuM9+nUIXuRNgTap0FN1yb22iEs59q/c7AuuNQxmaewI1Z +oNB581wRGAR65AiBawbkj4NrhE9PPR72i8gzJ2nSfQ2hqssD/V8CKBJefC9JoMlOatW pcHnDRC4rLDYEbREhNoOTrmCx1stD3nEML9SQVPaapvpId4h47Lj/W5fJ68b6g2K4Ao9 B6v/OZhjJwF3w/cwDDF6HcswEM1VXGWNxUNIE3vXfFnakAiiH1Ir/e3EgRI/yglFNAVe DBB39ahV5jupNbqZBnJn8LisJwX7P7nWO1VbNMkwRsrxQrJ2fFo2lSZcaE5qbeTIrmmq joug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ui+PwTKn8A+c8+qMLznZVwQaSecG+968WggH9whL7Sg=; b=01dKeLCr56SGy+gaJBIOumhULgrMNH27AIZTkv1SjGia1lOYa4oIasuDrzvm21uv+7 3FwsHmCsPf5ZffT5IK2LhkvuFYvRjpPmpP0vzwtsAq/DGs2TAfMjtoZG30wc/T2eBz7q N4DKVyH5J2L2AgFEUP7U01qtBEwqhU3uuyedndjA/Xw0+pbdcP0NprLxu9Y6a6hZTf+F A0E2C3fpazYlMJezPIOlJG7Oy3IiibYK6+M4ISWczXxgwbyw9YkT3mCg7EH4G/33x7QN RNqfUHmqmlkcJLsof5MGBQdvSUW9rGr86ENgx+rFxkCD20jOeMiGZ2Zzde7fzYpTF2tw i/lQ== 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 f2si18185184oti.74.2020.01.02.06.59.54; Thu, 02 Jan 2020 07:00:06 -0800 (PST) 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 S1728658AbgABO6u (ORCPT + 99 others); Thu, 2 Jan 2020 09:58:50 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:58161 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728544AbgABO6t (ORCPT ); Thu, 2 Jan 2020 09:58:49 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1M433w-1in1vY3uwi-0003Hv; Thu, 02 Jan 2020 15:58:21 +0100 From: Arnd Bergmann To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: Arnd Bergmann , Jeff Dike , Richard Weinberger , Anton Ivanov , Justin Sanders , Jens Axboe , Daniel Walter , Alex Dewar , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH v3 05/22] compat_ioctl: ubd, aoe: use blkdev_compat_ptr_ioctl Date: Thu, 2 Jan 2020 15:55:23 +0100 Message-Id: <20200102145552.1853992-6-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20200102145552.1853992-1-arnd@arndb.de> References: <20200102145552.1853992-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:8p6BJLwWlOj4GvZq2jwHiMBi4e9jJiHHbTeRXtMc/ApbEdKhklc gKlW1NaJh90o2mvhxJRo47hmvCzaB15auzhfRK08JSJldtXQK+TFAbQnCnVZulkj5SogMn4 LfbZdloSdsbQbAhiQeotT/ZakSv8yylow0e+EApZlUEBrIppF2EzpE6WOgmXG/gLywQZxZx rjT/qfDnsWHma4CB8nMaA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MrbTKH9MBv8=:tGOIcVKUd15dl5QCSnQhWi l92uQbcHjmyxlz3mrYVH+VEzMKjGo99LlZCaa00Cs9CW/8c1yR4TqOnAqtq2cyyTm7BydkDN3 M1oQrb3D0yzJNz2qT5vhX3uAaH9ELre7mNJf1lFrEaltKs9LrMdgZRFSTBKHTv0XwHoIhlFrK iAfucu65aHNau9imkICR//naYpZqEe9oJQsmFCqqC/NXNoZoEy0HdLC/zwDzcJxQr++0Ql1w7 OmyB01FdKfIB+dNOl9q4mUPgwSCJ2FF8GOI7rLsVEajQ3twqYGU532orIIbPP579kpe+vW6Wd 0UTU50Gqjbi3Rdb7hQIOoPue8RDQlEMCADDW1tijPnR+7ds73XPy+g8cy3nK1lgTPGntDwN4U w9nzLdHkPHMEbkIxd7zHVKlkHwJecfUC9u9xk4Y8PDzsJVnuVkSthxgVpw5j2b1lT7QAzLA3p MEBPOADTWWZwQjSFNVx4yflFSY0A+SzaTL7NlPJYWlyciQyUDWeKi3+wD5GIvBAi4GKCNRwL3 zWoZHo9QzmA2vj8e5m5I6i+17omfJdbjOcb8IJKcPC0vF7ZnuMluOIRnSvlSOJ2Dhc4xk8+qx DpCnZNOjGxjAAQOT/1dsbvbJD4T7byudIqLDyiiYxeZ5RIiZeHk0Vl/p0hK8pn06oKk1ZSIMb dW+VDrNJlVEVt21k5K7jrzRxpAY0n0AF41TdhraKf3lagtDcva/ON8ug0sirgQiezEBvcovUr pMDACkpS3KTrz8X6yZpRQlhYjuCAKlBRv8D8gk3191Z52wetwpvcQSfgE7bszS0A1ItxITQlj n5szWhlnByKP4I8KStDZLS1PXM/QlWPFNuHICr8hjXvzl7SKGhsHGE1BmVHcWsG6s8qFFncjK iNE5bzoy6IW09u5hSBow== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These drivers implement the HDIO_GET_IDENTITY and CDROMVOLREAD ioctl commands, which are compatible between 32-bit and 64-bit user space and traditionally handled by compat_blkdev_driver_ioctl(). As a prerequisite to removing that function, make both drivers use blkdev_compat_ptr_ioctl() as their .compat_ioctl callback. Signed-off-by: Arnd Bergmann --- arch/um/drivers/ubd_kern.c | 1 + drivers/block/aoe/aoeblk.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 6627d7c30f37..582eb5b1f09b 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -113,6 +113,7 @@ static const struct block_device_operations ubd_blops = { .open = ubd_open, .release = ubd_release, .ioctl = ubd_ioctl, + .compat_ioctl = blkdev_compat_ptr_ioctl, .getgeo = ubd_getgeo, }; diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c index bd19f8af950b..7b32fb673375 100644 --- a/drivers/block/aoe/aoeblk.c +++ b/drivers/block/aoe/aoeblk.c @@ -329,6 +329,7 @@ static const struct block_device_operations aoe_bdops = { .open = aoeblk_open, .release = aoeblk_release, .ioctl = aoeblk_ioctl, + .compat_ioctl = blkdev_compat_ptr_ioctl, .getgeo = aoeblk_getgeo, .owner = THIS_MODULE, }; -- 2.20.0