Skip to content

Commit 82a6857

Browse files
author
Al Viro
committed
compat_ioctl - kill keyboard ioctl handling
all of those are provided only by vt and s390 tty3270; both have proper ->compat_ioctl() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 969ec01 commit 82a6857

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

fs/compat_ioctl.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,6 @@ static int compat_ioctl_preallocate(struct file *file,
644644

645645
static unsigned int ioctl_pointer[] = {
646646
/* compatible ioctls first */
647-
COMPATIBLE_IOCTL(0x4B50) /* KDGHWCLK - not in the kernel, but don't complain */
648-
COMPATIBLE_IOCTL(0x4B51) /* KDSHWCLK - not in the kernel, but don't complain */
649-
650647
/* Little t */
651648
COMPATIBLE_IOCTL(TIOCOUTQ)
652649
/* Little f */
@@ -663,23 +660,6 @@ COMPATIBLE_IOCTL(FIGETBSZ)
663660
COMPATIBLE_IOCTL(FIFREEZE)
664661
COMPATIBLE_IOCTL(FITHAW)
665662
COMPATIBLE_IOCTL(FITRIM)
666-
COMPATIBLE_IOCTL(KDGETKEYCODE)
667-
COMPATIBLE_IOCTL(KDSETKEYCODE)
668-
COMPATIBLE_IOCTL(KDGKBTYPE)
669-
COMPATIBLE_IOCTL(KDGETMODE)
670-
COMPATIBLE_IOCTL(KDGKBMODE)
671-
COMPATIBLE_IOCTL(KDGKBMETA)
672-
COMPATIBLE_IOCTL(KDGKBENT)
673-
COMPATIBLE_IOCTL(KDSKBENT)
674-
COMPATIBLE_IOCTL(KDGKBSENT)
675-
COMPATIBLE_IOCTL(KDSKBSENT)
676-
COMPATIBLE_IOCTL(KDGKBDIACR)
677-
COMPATIBLE_IOCTL(KDSKBDIACR)
678-
COMPATIBLE_IOCTL(KDGKBDIACRUC)
679-
COMPATIBLE_IOCTL(KDSKBDIACRUC)
680-
COMPATIBLE_IOCTL(KDKBDREP)
681-
COMPATIBLE_IOCTL(KDGKBLED)
682-
COMPATIBLE_IOCTL(KDGETLED)
683663
#ifdef CONFIG_BLOCK
684664
/* Big S */
685665
COMPATIBLE_IOCTL(SCSI_IOCTL_GET_IDLUN)
@@ -1185,15 +1165,6 @@ static long do_ioctl_trans(unsigned int cmd,
11851165
case HOT_ADD_DISK:
11861166
case SET_DISK_FAULTY:
11871167
case SET_BITMAP_FILE:
1188-
/* Big K */
1189-
case KDSIGACCEPT:
1190-
case KIOCSOUND:
1191-
case KDMKTONE:
1192-
case KDSETMODE:
1193-
case KDSKBMODE:
1194-
case KDSKBMETA:
1195-
case KDSKBLED:
1196-
case KDSETLED:
11971168
return vfs_ioctl(file, cmd, arg);
11981169
}
11991170

0 commit comments

Comments
 (0)