From patchwork Sat Sep 8 14:28:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 146234 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp625274ljw; Sat, 8 Sep 2018 07:28:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYhyZ4qhgvGfY736H39fyfrOZitiHSKDF+4s5Zb7Np/hnAG84dpCXOrrmNxfOP5rRgn992w X-Received: by 2002:a17:902:561:: with SMTP id 88-v6mr13013886plf.320.1536416936933; Sat, 08 Sep 2018 07:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536416936; cv=none; d=google.com; s=arc-20160816; b=A1kRIpMTosG5UCpywG2lNbyoiV+nnDnNKbKR83D8hcHzR7tGR7vpAK/eyezrtU7QB5 O/F05HNFNwTEU1D/b8jgwwLBDR8fICoKA1dXl6W/nfwzlpAcubwriD7i239yiJ/fdmOQ tQ3rOo0VjnUJ2uLxu7BRaMXcdyW8WUPUwFLA9Vc76iD7BPCT9xkoStMfm93WkJAry6Ja c/8X063NCDdM2nG1BdVLqS/mOUEQXEF8cqgKgEvK4A54XSxV9yEnFk1P+DNyPWF+a2Cu Pf5AjfzOlrL2DLTJGG3U4l7wMkuCCzDC/hpigTuUJ6ZMgrbP7Q4ImkNjEhCyGKtutEBR DIgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Kc7O5tzKDVMBBt4hIdZMdbQuAzb3GcBztQzOWgm+buY=; b=WrLkPRuBSkH1N1S+zh157Y4IkfqaDFPuyrhhz9K0Y8xTLt6aNEoBuliKEZa5UZEXWZ OX5EzBOeveR1PV/i2acVm8QUNztKhjuFnsg6yeS1aXacobP8huQs3xxtaxDwl9xFMqUF 2mQfbFihqyX5O4rAqyhuWDjq6lC3xBMcKBdov+P1Z8s0MhYT8TkDUjBQGaClBpKIHGgK D1SKm2IsgAYBzFrx5a+AYW4mYDKItdpMWSl/g6xLn/h+1cEcp1Iw+ace0D9IIWAzmUTm 0iMPcjEPt6ag9p0D9NewncR3+mQR8nQv87rCrmvwUkIdk2suZyzwlyiHEQYO+fGEdPP9 c5Lw== 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 u6-v6si12088851pfu.143.2018.09.08.07.28.56; Sat, 08 Sep 2018 07:28:56 -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 S1727126AbeIHTOv (ORCPT + 32 others); Sat, 8 Sep 2018 15:14:51 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:36077 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbeIHTOv (ORCPT ); Sat, 8 Sep 2018 15:14:51 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MQusJ-1gC2Fg0z9r-00O0Hd; Sat, 08 Sep 2018 16:28:51 +0200 From: Arnd Bergmann To: viro@zeniv.linux.org.uk Cc: Arnd Bergmann , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/11] compat_ioctl: remove HIDIO translation Date: Sat, 8 Sep 2018 16:28:08 +0200 Message-Id: <20180908142837.2819693-2-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180908142837.2819693-1-arnd@arndb.de> References: <20180908142837.2819693-1-arnd@arndb.de> X-Provags-ID: V03:K1:1I7Gcze/afAgmffd/3BD2ZlxrLv3YnhRyEl67SMr2RW79rV+nw6 9xDXgu89vBFFY4343FDY/bphWCuqeVrHTjzmx5Qzr4mMnc3y2KPsd4mq9wtPFzoOiqt6m9V tuZC3KfeiFYYBpUqReoiB0+vMrIbeHwbyGsCa7JxOdlhm50ruymRLiiEQ2DCc2Et3ZaTkC9 1SJtdld4JYRTkl/VjXeBQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:IjpLeV6cdrY=:xBVd5L/OjCLh7ic+RKjJ/C 4EnnCtZH6/a/caSeTKpIisQaejYJt1dN1yrVlhXIeWSJcLUn8NwW3oarsFFzS2qMFgITKT2Vi ECD3fya2lOHkvFxrl7iu7wmAm21alDrfBvb70fxEDtRPldlDYtmIinDy+UCAVsJGtOycONMqe kdG7ktr7tZk4uHXs/aYyogI1dWVZABadxX3s7TcHmruSuLRBoV5ovBvaBV6WPToooMrmvHe7s QhQph8iWfpTNPntV9X3Vs7mNLBzLEbn57qZGx17t6YajDkxd0UUCleFWmq3P8ojGSiE846+qe XXBADtVORCdbAdxffzyPFunXEmnvilnXPuV3DsFxNAOcE2pLYX/6K7bdFBO44OWDw5sUEwo9N gfgAzB8dp5do2EywwW+2pCsqaWr3qEHegZot0cEsTbrKUWRCfpKFujCQ9j4xura8hwujKKlVC yiHxAFRkiXGA1E+zv0iiWshs3fVlbrKmnzUTKOc4BpamyocMdQGW+ScLU860HHxlFtmqHizTn Vr8ddQvaOSK5AZZEwD//5pvhpFIM1vMAKqY+BL+4eYrrf9OKwd++eRhuX3aTrv1k/bC9nDJlS 9W9NjDPpW4hc9Rt8LLcJWE/xMNLxZYRq+R3qw+4P//PU+6O5l1Q/w4RuBidc0ZA4LGcCIsDhy F6S76PTZzexI8tPc9Hq8X0pzd5+hTZ/ibPCrHw0KKQU2pGjq//10DQz2Tov+kChoGYFw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The two drivers implementing these both gained proper compat_ioctl() handlers a long time ago with commits bb6c8d8fa9b5 ("HID: hiddev: Add 32bit ioctl compatibilty") and ae5e49c79c05 ("HID: hidraw: add compatibility ioctl() for 32-bit applications."), so the lists in fs/compat_ioctl.c are no longer used. It appears that the lists were also incomplete, so the translation didn't actually work correctly when it was still in use. Remove them as cleanup. Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 17 ----------------- 1 file changed, 17 deletions(-) -- 2.18.0 diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 4c2f83a386a2..c2c73b802fb3 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -853,23 +853,6 @@ COMPATIBLE_IOCTL(PCIIOC_CONTROLLER) COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_IO) COMPATIBLE_IOCTL(PCIIOC_MMAP_IS_MEM) COMPATIBLE_IOCTL(PCIIOC_WRITE_COMBINE) -/* hiddev */ -COMPATIBLE_IOCTL(HIDIOCGVERSION) -COMPATIBLE_IOCTL(HIDIOCAPPLICATION) -COMPATIBLE_IOCTL(HIDIOCGDEVINFO) -COMPATIBLE_IOCTL(HIDIOCGSTRING) -COMPATIBLE_IOCTL(HIDIOCINITREPORT) -COMPATIBLE_IOCTL(HIDIOCGREPORT) -COMPATIBLE_IOCTL(HIDIOCSREPORT) -COMPATIBLE_IOCTL(HIDIOCGREPORTINFO) -COMPATIBLE_IOCTL(HIDIOCGFIELDINFO) -COMPATIBLE_IOCTL(HIDIOCGUSAGE) -COMPATIBLE_IOCTL(HIDIOCSUSAGE) -COMPATIBLE_IOCTL(HIDIOCGUCODE) -COMPATIBLE_IOCTL(HIDIOCGFLAG) -COMPATIBLE_IOCTL(HIDIOCSFLAG) -COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINDEX) -COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINFO) /* joystick */ COMPATIBLE_IOCTL(JSIOCGVERSION) COMPATIBLE_IOCTL(JSIOCGAXES)