From patchwork Wed Dec 11 20:42:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 181322 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1042755ile; Wed, 11 Dec 2019 12:46:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyQ+nLOothnpwkiJYxmZ22M/B5NePPcVjtzbI08jPqhhbxK18UsqxkclP0JpsGCszQafSyZ X-Received: by 2002:a9d:453:: with SMTP id 77mr3860201otc.307.1576097182502; Wed, 11 Dec 2019 12:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576097182; cv=none; d=google.com; s=arc-20160816; b=ZTb5A4vdGPpJT8Ch+dsWPbOGhF1hAd2BQKnMO2NF84T3MyivXZXgAD6NwyIRw4e4i2 8jCNVU7bpH3VR8sjE6QUYSM/vuU8INBKQDmOk0C8X3P4rbfxP2eOvV+M+GTC3FXqmmA5 2eIVzVvNrbYwJzKCJFwUoHeAe4uRN18hD24Z9aIsObVCehK8BwQ69vagJS4ys+jiZhJl GonQ+jSACypoZh67doelSjEsw+mH4HthHpwPCNz2Kki8cFow3F2y8bT5T1Jz5nhvraUv EvLhgslCn6e+DLijUlWvnNfg9pkZcXkcOTkHp6sV0uAI6OixmnRq6GOf6N/7fo44W5rE W3wg== 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=NiwC93HUZCq7Jjef1O5Nuvzvjgm/m2w5k1y+XEmLKsDTGi5eGXrYhUpoIOrPG8EyTX 45mp4evSUrXY/7NXG9FnJ7eOaK50pJJMxQAcd2AcaF9H/N2PGfCIy8ka9ieyqOKyM+Kc hN/Fog5mS9k4Cw05XhMa0t3qCGGE6QOl/G/QLyuOcfk9v8Q4vhrUwHyQzYjgCUCAvVQx 5wzTyMTCP4tikc5OcpkdNTPoCLzijq3Wfvmp394K3j289P/P8OFAs0/iVsEzNL6zPTeX 7MfAKzDcVreEfZ4yiwXywms9H5m3O26spX3Sbmt+Vn0VA6Da0zdm5yYSFRyYE2jXZPv0 D83g== 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 y4si2098798otk.219.2019.12.11.12.46.22; Wed, 11 Dec 2019 12:46:22 -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 S1727030AbfLKUqV (ORCPT + 27 others); Wed, 11 Dec 2019 15:46:21 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:38855 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbfLKUp5 (ORCPT ); Wed, 11 Dec 2019 15:45:57 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1N0o7f-1hkohk3wnd-00wiOe; Wed, 11 Dec 2019 21:45:10 +0100 From: Arnd Bergmann To: Jens Axboe , "James E.J. Bottomley" , "Martin K. Petersen" , Alexander Viro , Jeff Dike , Richard Weinberger , Anton Ivanov , Justin Sanders Cc: linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Arnd Bergmann , Alex Dewar , Daniel Walter , Greg Kroah-Hartman , linux-um@lists.infradead.org, linux-block@vger.kernel.org Subject: [PATCH 07/24] compaT_ioctl: ubd, aoe: use blkdev_compat_ptr_ioctl Date: Wed, 11 Dec 2019 21:42:41 +0100 Message-Id: <20191211204306.1207817-8-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191211204306.1207817-1-arnd@arndb.de> References: <20191211204306.1207817-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:gy8z+YAlxaJ9blvRYgmlwoOjM5ATVorSryFF8QdI4xwnfePEif2 ZPqNZhXPZ2zKjqu+nHu5cY9UbimuPi3idKRpKUHXeFhUocrdiKGZl1/ztl9P/tv6FzJ/PhQ QfZ8OcX0GLkWwfNM3Vvs0xduPX27a2+KLP8a3SGV7HE9F75Njm6oBeKzUmFnAvHr12Ec8N9 5gn9BVCoxS5wHBp8wOO0g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:pGK6m1crKsA=:gSjJQpNokt5OeOSFQeubXS DhaKLPBBb6EV6alKwS18pbLZRwhjKMomynM6uF1IwkqUjosaLsZM5+fPzPTj8qcCy3o/bvOwH ak7ENd0/P9BEOfygvkRK/sXam/1u76ZTGCHaowaE3HMgWdLm9nqlluqoXOTs/Fd2bujikB0Is AmWz+dOLA7fovKnGj+0oVpPptqiYyDbtX/GSGi7EqN6K5gmr1HrDHd+tj1ZSC08UdOlCGZGCu IwBvuLdlgsdnEWnEV3tmDNgqWm4Ttd9r5m30tPJLnByHL83pkyWR0Z4L4vI7JqnEYy44gTLb0 IMwp1vEBhGRws4JPpInvZbQ+0MvlDuk20B8fxUByf4ihqvnZi7FWnJ7Q39NR8oWoTNONmqm64 9SCQaclMLWn9UYQypRTiJfpbR1eLtANQTZOMCSTZZ8C717vegRMJtsSM7d8yySarspbydIClD NIU7HCCBp+OZ/j2z0MHerIfJ++Q5nY22EAdBnqLN7Z9Faswsn6mOj9S3cio22FmZkwoKtmJwH FzaZEi/of2JEyPSYXrmUEKDgQxOEj+obRUPtt9kogZRoE2aFCnUj5dfZT6qgwCZVdsxo998PC dCZmerXpuxR4YytniK67YdDWyX1RXOrapkFwk+rBwcRMAE7HMAFRAblqF4l1SeLuYK7QHfgx+ +3+QmrVkplwr1i0Nkn0I+bNKP0/Tfc4BP0Rr1c8cfvERunmo/gbQumMgI98O+9FPHPabF3g5m iB33cvRo47XAQc1md8dzuy9DuqR4oNh/yFNLdzDwNFrp+74V1cGw7aGxXXpPZPNQpYFwUAu0y uaWmDUA6OYy4cA2yP5Ia24bfQsCYvmIeIdnTNcaMMsQsAwh/3ObdpFUTbiYn44CScMJmpYMEH 9z/m1cveMeFXPF7tB5tA== 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(+) -- 2.20.0 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, };