]> git.baikalelectronics.ru Git - kernel.git/commit
termios: consolidate values for VDISCARD in INIT_C_CC
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 21:17:04 +0000 (17:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 08:44:34 +0000 (10:44 +0200)
commit1021c75ba4553aaad6d0e4d8d83de5446b8652b3
tree158b5f3e9a07e974f80c1a386f778287a9148f1e
parent4fd359c0908cd4ba88923df1985a7d52e8d3c74a
termios: consolidate values for VDISCARD in INIT_C_CC

On old systems it used to be ^O.  Linux had never actually used
the value, but INIT_C_CC (on i386) did initialize it to ^O;
unfortunately, it had a typo in the comment claiming that to be
^U.  Most of the architectures copied the (correct) definition
along with mistaken comment.  alpha, powerpc and sparc tried
to make the definition match comment.

However, util-linux still resets it to ^O on any architecture,
^O is the historical value, kernel ignores it anyway and finally,
Linus said "Just change everybody to do the same, nobody cares
about VDISCARD".

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/YxDmy//MKzs3ye7l@ZenIV
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/alpha/include/asm/termios.h
arch/mips/include/asm/termios.h
arch/powerpc/include/asm/termios.h
arch/sparc/include/asm/termios.h
include/linux/termios_internal.h