summarylogtreecommitdiffstats
path: root/0019a-kernel-6.8-tty_driver.h-send_xchar-to-u8.patch
blob: 325e84f82a0c7db5a950324c7a9a004b7f5b39d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -pNaru5 a/driver/2.6.27/dgrp_tty.c b/driver/2.6.27/dgrp_tty.c
--- a/driver/2.6.27/dgrp_tty.c	2024-04-19 12:16:29.000000000 -0400
+++ b/driver/2.6.27/dgrp_tty.c	2024-09-04 16:34:32.389539577 -0400
@@ -139,11 +139,15 @@ static int dgrp_tty_tiocmset(struct tty_
 #else
 static int dgrp_tty_tiocmget(struct tty_struct *);
 static int dgrp_tty_tiocmset(struct tty_struct *, unsigned int, unsigned int);
 #endif
 static int dgrp_tty_send_break(struct tty_struct *, int);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0)
 static void dgrp_tty_send_xchar(struct tty_struct *, char);
+#else
+static void dgrp_tty_send_xchar(struct tty_struct *, u8);
+#endif
 
 #ifdef MISSING_TTY_CHECK_CHANGE
 /* they decided that tty_check_change was internal to tty subsystem and
  * no longer export it; now it is down in kernel/driver/tty/.  So far
  * the symbol is still visible though, so can get away with a local decl.
@@ -4052,11 +4056,15 @@ static void dgrp_tty_input_stop(struct t
 		wake_up_interruptible(&(ch->ch_nd)->nd_tx_waitq);
 
 }
 
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0)
 static void dgrp_tty_send_xchar(struct tty_struct *tty, char c)
+#else
+static void dgrp_tty_send_xchar(struct tty_struct *tty, u8 c)
+#endif
 {
 	struct un_struct *un;
 	struct ch_struct *ch;
 
 	if (!tty)