From patchwork Wed Dec 11 20:42:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 181317 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1042280ile; Wed, 11 Dec 2019 12:45:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzpqBeIrKjppT6er32ZNxSlwvfL1ZslX4pTloEHRSQVT9mU9KDNNE4P8U4Wgt1SsjZafZP3 X-Received: by 2002:a05:6830:18cd:: with SMTP id v13mr3778890ote.118.1576097155874; Wed, 11 Dec 2019 12:45:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576097155; cv=none; d=google.com; s=arc-20160816; b=j9w2brT53zg/AuzHiQwUfykJmHrvtDEONuOwt1vjJjqaChT1kDfQwRZVzDmCubNyS5 aufvebjV7GH/kijdUfTDDKW9p0aQTt0ltWTl6iF/get0HEbrTGg/xLub2HutkK9cRzhN Gca+sHQ7RWRgMmq4B9+CqzEiON3lJVU07hBWTRKLGYg+7c0NMVQc7j5qKu8sd7EWoaQu 2pyIl3ERabz2JywRBZhru0dlxdWZYVX/+DCvk4kIXePOBzSi+mU1CL7oHHCtlzyKrFxG 0RxSbK7/8c4hPW6a6Y/gZWTU+dilIFYPM35IDeHIjyU9zFVGCMGOoVSbw6iG0QwcfQqm q9BQ== 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=S3+nSil5K3Lu0xdE7CqRdAuJtX/1I06dt/tZJdrmwBo=; b=HnUk8PcrSDF1esRrIsmlQAxX6Z58D+WrL8T3w1heMiN55hfdAEJeaPtsq2+Uk8rIqY zZC0tQzmvu4LKLVnqGtGyuTNAG35PFJtgltkUmwGcmdyA4tOanyqCZ9jcZQsRN2L6oKT jy39q8fl1SXfggOQGC2P/Yf4r2IewdZ8cx5MG1+j8fLwSGdYnf6ieBEz4EeGCtfhjqM7 IVeVSLQ10Vt93UgA/rIqFoITXWud4y+AK1tfOSLjfkZ7dbACEseMiY1RznJCySk36JIW EgzxRx8IeTuDFiYymhqmIhLie8rJrlAJoNg+E02Z33B0nYAnEsfzu9yxiSdAbG9Z+/Lz xanQ== 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 r1si1754469otq.298.2019.12.11.12.45.55; Wed, 11 Dec 2019 12:45:55 -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 S1726769AbfLKUpy (ORCPT + 27 others); Wed, 11 Dec 2019 15:45:54 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:56465 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfLKUpx (ORCPT ); Wed, 11 Dec 2019 15:45:53 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1M5fQq-1idU9L0Vhq-007E8d; Wed, 11 Dec 2019 21:44:41 +0100 From: Arnd Bergmann To: Jens Axboe , "James E.J. Bottomley" , "Martin K. Petersen" , Alexander Viro , Hannes Reinecke , Damien Le Moal Cc: linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Arnd Bergmann , stable@vger.kernel.org, Christoph Hellwig , linux-block@vger.kernel.org Subject: [PATCH 04/24] compat_ioctl: block: handle BLKGETZONESZ/BLKGETNRZONES Date: Wed, 11 Dec 2019 21:42:38 +0100 Message-Id: <20191211204306.1207817-5-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:7VRHp+IKRwV2Q9YentDGY5xMSAqEOhk7ZARK0JfIsCS+oOLEuza EzQyPOHsQNVHmCOd2y0s+ZGIglq00NyJws3hpQiZcA4cow9FHjmLk3v5elOH2eBhgann8xY 928DwvCV5XQhcL0UtEPyXrPXlIQtcYB91MJk24tTX4hhZV/39SFX18bzQunL2y0vECCFc6h GKP2Io5tZThqRs1BYRBBg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:iq5JBLlu3+U=:/ECo3/I2OfudG0vBX8xJhb fx5gydprst2zUW/oZ8T2Tvh9+s+ePA1wGKvIva9yvBaIxQzdNusGcKec3/xeFDMz3U/Q73heD XZB05O1vTbWINtAk41Y10queHAC4cW0WBtC+yMt3B6QJ6clE+8wray+pupDtPctdlCpwO07vy ghmjZ047czufM9C49L/Efgkhp4fSp4WG0aWRGZyhs+9IqR+K8CYHrBZDa2GqJRF3JNirB8i32 xqdY+zN2J74AAkqVl6snre2sped1hur5lDTlANtgJGNUN2//kHYmitZy72JV5/H7K7ktWZTXw gVu0503X+yqC/c5epuBsq+xuvbK6vsP4r/CCe2qHZoKyG1mfWmmLkKp3Ca1QTxPGMb1SuMQXM LpDU8dBaAlP4RvR+j0Mc+IRuM6SL2bh3MX2jTXKKKwlpd5O7KqLi/rJbxriAGlW1+6F2fChEV TkfaRUaWMQKsRkmOOp35FkGxdAONa4B5BmxB1yOgR/CGROXGTdLfgSQdA/jL2PyF7O85f6ypz vy//qUe2fsTMWgskorZQSRH8Sh2JtE+ycRYubObY/eshvzUJK8QdjbWDDnxAMpHw+wZX9h+9G sKgKahjQuBISN8cgOMEac/xfsHZgiqQhs+HaaYwl3Eb21tXSm6LprSLbNFS6igtpu03UviyTM DP4ECPqC8Q6kU1rPtPbThrvlUbdMArO67y9TS8xZD5fRlbExyJlya3YFVp5XsIn1EfOmjTHVq b1hNbMHeCRLKr01MAHseLxaK2JUCvsjzehSCLRuxcKcx/Ll+z1C56n70JaRNN9xchQurT7eG6 kmmTfmj8E/SNcO1INGrjkhukC2tF1dpKaUtP01A+M5bWP6e6entdDhPyiNA8QMhFyIjNzgg83 E3+Rkn+cmASvGcXVQAzg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These were added to blkdev_ioctl() in v4.20 but not blkdev_compat_ioctl, so add them now. Cc: # v4.20+ Fixes: 72cd87576d1d ("block: Introduce BLKGETZONESZ ioctl") Fixes: 65e4e3eee83d ("block: Introduce BLKGETNRZONES ioctl") Signed-off-by: Arnd Bergmann --- block/compat_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.0 Reviewed-by: Damien Le Moal diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 830f91e05fe3..f5c1140b8624 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c @@ -356,6 +356,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) case BLKRRPART: case BLKREPORTZONE: case BLKRESETZONE: + case BLKGETZONESZ: + case BLKGETNRZONES: return blkdev_ioctl(bdev, mode, cmd, (unsigned long)compat_ptr(arg)); case BLKBSZSET_32: