Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp708965imm; Sat, 8 Sep 2018 07:30:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbV1OVt5QrAeN5aMTSn5D1/IOEYTU2V/mMdfNLYC2aQ48FGN9DgKx2bNbHo8T6WFDPifssp X-Received: by 2002:a65:60cf:: with SMTP id r15-v6mr13681343pgv.41.1536417003240; Sat, 08 Sep 2018 07:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536417003; cv=none; d=google.com; s=arc-20160816; b=o0b29MqvUqk3yxuIg0JfDMTs73sPpl+cSfEFdLxERQfbuPLGBRSd+tibZ2SIl9F8zo BgV6Nq8roGa8DEdjVg7eQcAcq+upUjlcM7dhgsCmuZsfAPqtpQX2z4STrVeSdHNSjivw d8Wg5BRUq3/3C4QNaE/bTRFjXPx8EU6XObBxuAHZ6wiuqLl34Uhc0ilhQC7g3oSog1bc pXijJYV6KtUxOBFE7EAb5zw/vwTB0wcX6SCDOR1vLa32ZF1chTqCR1FTFXwGKFI/KpTq TbHBcYGRNkwxy7MgfVbgcK6i0uPxkatl33n6btM57lWxYZa83xQwnabtItUyXoCRKLSr hgHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=riaWTGWUiP2xge9OR445XzT2MU24UqjqNk8GbjwT6+Y=; b=catUIdlt7NUftWdELrB+K2kG71GSCTZNN75E6op6uan/GFgVLT2A1Jz0Kj9Y8mArek LVKHAa6sSoeKdckybIWZENfCy5oU4D3L5lLJJUABUgUoUWW/KtA84gYIJB2xm45NePcK Xd7N7ha24sN+TsTLz29vrN3sT6N0Pqfrp1GoXDcoQrg/ttvjtCxw3YUT14Aof3SKg8x1 FEhoI3Z8h+OFWjYdLUPBT8Wb0uijOUyFrfLAC8K3jcZf4ACgAFiuvgM/A96GHyeMeqZw 9S37kNaBsy6dEpOF1KKQ7LJgxepoKyjLnp0vCXeBiEnKTQXgEKJO/bNo0CZtm3xlv8pA iaLw== 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 a8-v6si11506558pgl.568.2018.09.08.07.29.47; Sat, 08 Sep 2018 07:30:03 -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 S1726938AbeIHTOk (ORCPT + 99 others); Sat, 8 Sep 2018 15:14:40 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:60997 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbeIHTOk (ORCPT ); Sat, 8 Sep 2018 15:14:40 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MtO4E-1fja7C2jHC-00us4C; Sat, 08 Sep 2018 16:28:40 +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 01/11] compat_ioctl: remove keyboard ioctl translation Date: Sat, 8 Sep 2018 16:28:07 +0200 Message-Id: <20180908142837.2819693-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:Gz8Xz6xl87kUTIzpUST9fXtlPaHTobfeRYO3+pf3eMsd4Ck/d85 5ItkPxs+5a6/WChTlqUCiSCyfh8vMMaaq+vt6J427MFBvlfz0IcKjuuhr+YBq9csEJaf3t/ Lardw6pIIsDI9Qdb5nAariLPcws01/eOgBt/zzPwatnj+3m+UI+f4NLmAuV8P8t77MbGBiM 6ROJgVhNbg/T5UMmWoUfQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:27Pqvg3AFhU=:uNkLBf8C+9w11YLvPCfrPf 15h2unUxaZPoAptUKCID34yK2FtnaUcaJrIQ6Tm5mmmxvXAN26Y8rYJTkc8bQhZeB3kHPMxGx +zcZk/Ke02N+StrWkraTHvoPFCHqSCgsEadsVGl0QAP6BJ7EeD7wv5cet0AYnVfoFM4NxjGC9 M2LktmpLkjKpnhNzAJLO4fIEeKsmzWYwOBVtWanqZH1qGhmPR2IxLsA0c7ANcLmEEc3t9GOTl A6dKJvpm1B3KWp6UukS5dVkq+Qogeg1BMuPAN+FNnQyFu2GjRkrQEvgGc7HGMbH5djP0nKO2x 9OREChJ84Dki6n78f9DLxuJ5qXJorRgnwfoTDSWdrHWdj2daFbs+kucIwG+B6oM5svcSB/2bq R4Jpk8qnnkyVzmEwoaJGC2mk+jjdycNs19+L4cGG204VmmiR0igUkGoRNbebrFTC9Zi1SFwKQ IjDS0rVubh1GkN3QctzogqsEXjT4+TSCbBUPY2w9ele9Jt8JHEY1mb1j0cZdGVrRb0yJE4tKL NeVsE2NB/ufXW4Z+fhPK5xSXAT+sh/bVGAhTy4skxaAi7xsCOwnGJogD7lLmHwvtcg6pkbbts ApNKoo6C1QRfzWg2FktyXpaB7BiqmaZ/lxrPo2lUgByhDqdCE5HAClW7nFAy5QKRPuHTSVzsY mQFckiMUPW+JIEDLpNlItot0oEnFAR34+V7WoB4ih+kOgEmhoI78deNqhshI/FhrK0oI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The KD* family of ioctls is implemented in two drivers: drivers/tty/vt and drivers/s390/char/tty3270.c. Both of them have compat handlers for all their ioctl commands, so translation in fs/compat_ioctl.c is never used. Commit fb07a5f857ac ("compat_ioctl: remove all VT ioctl handling") removed the compat handling for all the other VT ioctls back in 2009, but it seems I missed the keyboard ones back then. Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 9237076bdcf5..4c2f83a386a2 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -546,23 +546,6 @@ COMPATIBLE_IOCTL(FIGETBSZ) COMPATIBLE_IOCTL(FIFREEZE) COMPATIBLE_IOCTL(FITHAW) COMPATIBLE_IOCTL(FITRIM) -COMPATIBLE_IOCTL(KDGETKEYCODE) -COMPATIBLE_IOCTL(KDSETKEYCODE) -COMPATIBLE_IOCTL(KDGKBTYPE) -COMPATIBLE_IOCTL(KDGETMODE) -COMPATIBLE_IOCTL(KDGKBMODE) -COMPATIBLE_IOCTL(KDGKBMETA) -COMPATIBLE_IOCTL(KDGKBENT) -COMPATIBLE_IOCTL(KDSKBENT) -COMPATIBLE_IOCTL(KDGKBSENT) -COMPATIBLE_IOCTL(KDSKBSENT) -COMPATIBLE_IOCTL(KDGKBDIACR) -COMPATIBLE_IOCTL(KDSKBDIACR) -COMPATIBLE_IOCTL(KDGKBDIACRUC) -COMPATIBLE_IOCTL(KDSKBDIACRUC) -COMPATIBLE_IOCTL(KDKBDREP) -COMPATIBLE_IOCTL(KDGKBLED) -COMPATIBLE_IOCTL(KDGETLED) #ifdef CONFIG_BLOCK /* Big S */ COMPATIBLE_IOCTL(SCSI_IOCTL_GET_IDLUN) @@ -974,15 +957,6 @@ static long do_ioctl_trans(unsigned int cmd, case HOT_ADD_DISK: case SET_DISK_FAULTY: case SET_BITMAP_FILE: - /* Big K */ - case KDSIGACCEPT: - case KIOCSOUND: - case KDMKTONE: - case KDSETMODE: - case KDSKBMODE: - case KDSKBMETA: - case KDSKBLED: - case KDSETLED: return vfs_ioctl(file, cmd, arg); } -- 2.18.0