# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/linux-header/hotfix-sparc-termbits.patch # Copyright (C) 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- --- linux-5.1/arch/sparc/include/uapi/asm/termbits.h.vanilla 2023-06-05 09:53:56.815902399 +0200 +++ linux-5.1/arch/sparc/include/uapi/asm/termbits.h 2023-06-05 09:57:59.105899474 +0200 @@ -13,16 +13,6 @@ typedef unsigned long tcflag_t; #endif -#define NCC 8 -struct termio { - unsigned short c_iflag; /* input mode flags */ - unsigned short c_oflag; /* output mode flags */ - unsigned short c_cflag; /* control mode flags */ - unsigned short c_lflag; /* local mode flags */ - unsigned char c_line; /* line discipline */ - unsigned char c_cc[NCC]; /* control characters */ -}; - #define NCCS 17 struct termios { tcflag_t c_iflag; /* input mode flags */ --- linux-5.12/arch/sparc/include/uapi/asm/termios.h.vanilla 2023-09-01 14:43:29.850305917 +0200 +++ linux-5.12/arch/sparc/include/uapi/asm/termios.h 2023-09-01 14:45:14.160299059 +0200 @@ -40,5 +40,14 @@ unsigned short ws_ypixel; }; +#define NCC 8 +struct termio { + unsigned short c_iflag; /* input mode flags */ + unsigned short c_oflag; /* output mode flags */ + unsigned short c_cflag; /* control mode flags */ + unsigned short c_lflag; /* local mode flags */ + unsigned char c_line; /* line discipline */ + unsigned char c_cc[NCC]; /* control characters */ +}; #endif /* _UAPI_SPARC_TERMIOS_H */