From patchwork Wed Oct 9 19:10:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 175671 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1174762ill; Wed, 9 Oct 2019 12:14:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqmc46T3d7vY8UIc7u7aPByrJlZhedUMa88SIkiuJ2F9TLe+3wSZmef7tOIBEO6oMEHCZR X-Received: by 2002:aa7:d04b:: with SMTP id n11mr4552642edo.104.1570648491216; Wed, 09 Oct 2019 12:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570648491; cv=none; d=google.com; s=arc-20160816; b=RN0RhFR054W5Uc+TTAunGpZvWgwo4EI0MDtiKfYHd1iZQDeqQcw2hqxyua7uTrQE/M SMhDqJvSs1IfqSJZ81m2eekVxfn/X7kRh+X1KBYk4+nJb8sYtf5fQBm7aOSEvwM0XITy CS8r45RM2zBRXSJY2BlHkonqkEjIt2s2P1BRi2BVpLB4f4nEaiQ+m/4Nn9foEMmElZCy 4T/DEpFs3QUEpN7CX6xLXmQDtOdyOZVPJwWI5aQfNDaCedTyYRQB1kyfOknR+6jDMqGP 6vEuBsyChbrd9yET5bhh1zDS0ekYn0LNyybFjQjMG4DVZVJbQ12OcP+UN6D/8QRQ80yj LssQ== 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=87qYb+Q1dsKiL4D1i6EXiyBB/FguEAdfSGn258nkH+Q=; b=Sil9/mBXUc+lsqZBEJj2PgLBB5pf/PWGveYwNpBNOXsYBGU/NeG+BjXX/9dUyG9Yva l6lNTj7TsGttWSqAGzQdl6BUhIQ67Tbx9pO7WjWzL8XxxAlBAaTLUZn+I2NujdfDp6FS h6tnBNdu4z+XTk8RInLUWRMAx5Nvtvz2e4ttDYEngCkvEAxUkrMQIPdLys6MQXWUiceT hRyQNjuYDbNWunvowrcBkZ2v0+rhFqI8ZNy4IsV33E2R4a+V6x7azqiFFjQczD/KH88d yIpJhtBCxm5TUuRq1NGcNs5Cxnd68qVmBsbZEONpCTpl+/JJnev1vf6tbCCMx2dFQZuz zlsw== 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 e22si2005231eda.300.2019.10.09.12.14.51; Wed, 09 Oct 2019 12:14:51 -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 S1732541AbfJITOp (ORCPT + 26 others); Wed, 9 Oct 2019 15:14:45 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:45961 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731801AbfJITLP (ORCPT ); Wed, 9 Oct 2019 15:11:15 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MeknF-1hiOma24ph-00ao3W; Wed, 09 Oct 2019 21:11:13 +0200 From: Arnd Bergmann To: Al Viro Cc: linux-kernel@vger.kernel.org, y2038@lists.linaro.org, linux-fsdevel@vger.kernel.org, Arnd Bergmann , linux-bluetooth@vger.kernel.org, Marcel Holtmann , Johan Hedberg Subject: [PATCH v6 19/43] compat_ioctl: remove HCIUART handling Date: Wed, 9 Oct 2019 21:10:19 +0200 Message-Id: <20191009191044.308087-19-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191009190853.245077-1-arnd@arndb.de> References: <20191009190853.245077-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:8aOTXX6TdEpU5/KgUIDONK80ND60yvXM5iK1bsPvn2pkU6Qv7sB n/GqURBo1FAIM5bXKDZazKJNmUMRNOCbXlFqat9iQsMxjMHEOb1c/aeZJIVOlrfV238DfTO kwvpU5H7UvxKocPekysrSHac5yjk8q0H/UkP0dhbsP+jMXmAwlylYAfz23ozNqL1nlUZ8Rq zPi3DjTuBjmifhy+Ncn7Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:SrUTzCjBBoI=:BECAHyoNcZAW+KdZHIWkUJ 2C39Q9P1Dd/xKvUP3Jsq0hr/FmPw46oP2wGHfrYJ5XzoQXHHWNsuNccN/bjT2E2c5x2Xn8M/X ezAZPafZ5IlFnRsaWK0OWDO2MG0NUeO7R0Qn/fvx85MFFy5nJ9ULFM7kxwz+e/nEAVyd0NKZw 0PExVtFaIkubIXtjIhsrUxQNMZQxK/0xPS77hkL/ILy+TyZYeY+bnKpOGh1nqABGHvvVJutLd yj+lEdtRdp0dBodYoww7V0xXEwSxXwGaOUE6gJoTHtbEI4qxmRN0OYNdr/CPUUk/hLa54rCJR WivIwdUieHhhtM1PeTxsLbCEMQTDUHlSHlXKVVzNXeiUE94lS25xNUi/2xZDLbNc8zpnq/C5f PE/g7EYT9egMa6u+IkveEtFUyM3dvHHOC2tnDOHo60UpWU4W4XKb/VwAMd6WJcQmfDNKeuQyo HMJxG9gc0lkg+kA7r8CV6Sr3b359LYoMTvEk5r8dGOKx9XWYYjsTVswgHoVg8RRI3m5FYW9ek DJAfXEMHu7+EMGbXQQBf535jz/VAgZI2js1TauHADNOwzkeCeviTqMPf3r+/TsN+blUMrr0tO lDI6A+InPPdbUcXvJ9/D6hZSQXKtFYOwWOcFxMWGrKh/ANvTTqU54/J/8nd7KfBE2EZ5rNrT5 FJ125P6CJWssSCQTPj1Lw0UD/BsqqKRXb5Ebq9K0naUWJE+mNrwjJphtkHRDWXQazxtKILNAU bUN4s0FH3ujrGTB8/Wmjsclu8gOABaDqkM4zrQcjDdEr7n0LpOSJtKntIiRnnyHmYP39KTnxP bGprJkQ9uUQ6Q/pwoOAXUTqyy+QQCNDKof9cM+olwAYI4B2PEsFcYUzdFJYaqaAyQ1XHxfbxd 0gOha65Em5TnZKzkHHGQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As of commit f0193d3ea73b ("change semantics of ldisc ->compat_ioctl()"), all hciuart ioctl commands are handled correctly in the driver, and we never need to go through the table here. Cc: linux-bluetooth@vger.kernel.org Cc: Marcel Holtmann Cc: Johan Hedberg Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 13 ------------- 1 file changed, 13 deletions(-) -- 2.20.0 diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 9302157d1471..758b8b934b70 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -353,13 +353,6 @@ static int ppp_scompress(struct file *file, unsigned int cmd, return do_ioctl(file, PPPIOCSCOMPRESS, (unsigned long) odata); } -/* Bluetooth ioctls */ -#define HCIUARTSETPROTO _IOW('U', 200, int) -#define HCIUARTGETPROTO _IOR('U', 201, int) -#define HCIUARTGETDEVICE _IOR('U', 202, int) -#define HCIUARTSETFLAGS _IOW('U', 203, int) -#define HCIUARTGETFLAGS _IOR('U', 204, int) - /* * simple reversible transform to make our table more evenly * distributed after sorting. @@ -642,12 +635,6 @@ COMPATIBLE_IOCTL(RNDGETPOOL) COMPATIBLE_IOCTL(RNDADDENTROPY) COMPATIBLE_IOCTL(RNDZAPENTCNT) COMPATIBLE_IOCTL(RNDCLEARPOOL) -/* Bluetooth */ -COMPATIBLE_IOCTL(HCIUARTSETPROTO) -COMPATIBLE_IOCTL(HCIUARTGETPROTO) -COMPATIBLE_IOCTL(HCIUARTGETDEVICE) -COMPATIBLE_IOCTL(HCIUARTSETFLAGS) -COMPATIBLE_IOCTL(HCIUARTGETFLAGS) /* Misc. */ COMPATIBLE_IOCTL(PCIIOC_CONTROLLER) COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_IO)