summaryrefslogtreecommitdiff
path: root/include/linux/kd.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-01-05 15:02:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-07 18:17:31 +0300
commitff2047fb755d4415ec3c70ac799889371151796d (patch)
treef02366808543a0bb9070a9410c1ef3ec2bf6d07f /include/linux/kd.h
parent9777f8e60e718f7b022a94f2524f967d8def1931 (diff)
downloadlinux-ff2047fb755d4415ec3c70ac799889371151796d.tar.xz
vt: drop old FONT ioctls
Drop support for these ioctls: * PIO_FONT, PIO_FONTX * GIO_FONT, GIO_FONTX * PIO_FONTRESET As was demonstrated by commit 90bfdeef83f1 (tty: make FONTX ioctl use the tty pointer they were actually passed), these ioctls are not used from userspace, as: 1) they used to be broken (set up font on current console, not the open one) and racy (before the commit above) 2) KDFONTOP ioctl is used for years instead Note that PIO_FONTRESET is defunct on most systems as VGA_CONSOLE is set on them for ages. That turns on BROKEN_GRAPHICS_PROGRAMS which makes PIO_FONTRESET just return an error. We are removing KD_FONT_FLAG_OLD here as it was used only by these removed ioctls. kd.h header exists both in kernel and uapi headers, so we can remove the kernel one completely. Everyone includeing kd.h will now automatically get the uapi one. There are now unused definitions of the ioctl numbers and "struct consolefontdesc" in kd.h, but as it is a uapi header, I am not touching these. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210105120239.28031-8-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/kd.h')
-rw-r--r--include/linux/kd.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/kd.h b/include/linux/kd.h
deleted file mode 100644
index b130a18f860f..000000000000
--- a/include/linux/kd.h
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINUX_KD_H
-#define _LINUX_KD_H
-
-#include <uapi/linux/kd.h>
-
-#define KD_FONT_FLAG_OLD 0x80000000 /* Invoked via old interface [compat] */
-#endif /* _LINUX_KD_H */