sparc: move struct termio to asm/termios.h
authorMike Gilbert <floppym@gentoo.org>
Wed, 6 Mar 2024 17:11:47 +0000 (12:11 -0500)
committerAndreas Larsson <andreas@gaisler.com>
Mon, 22 Apr 2024 13:33:06 +0000 (15:33 +0200)
Every other arch declares struct termio in asm/termios.h, so make sparc
match them.

Resolves a build failure in the PPP software package, which includes
both bits/ioctl-types.h via sys/ioctl.h (glibc) and asm/termbits.h.

Closes: https://bugs.gentoo.org/918992
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Cc: stable@vger.kernel.org
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240306171149.3843481-1-floppym@gentoo.org
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/include/uapi/asm/termbits.h
arch/sparc/include/uapi/asm/termios.h

index 4321322701fcfd96b0953d3b69611ba24dd4a047..0da2b1adc0f52694e9f0b8e44407b2067c831df6 100644 (file)
@@ -10,16 +10,6 @@ typedef unsigned int tcflag_t;
 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 */
index ee86f4093d83e93e71e5d5eb7166a3e1b07dbc2c..cceb32260881e7d7ae76b23913cc06255dc662fa 100644 (file)
@@ -40,5 +40,14 @@ struct winsize {
        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 */