summarylogtreecommitdiffstats
path: root/0012-kernel-6.8-tty_driver.h-send_xchar-to-u8.patch
blob: 0c02e98b28b9972daf22391d37451fee97c31ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -pNaru5 a/driver/serial_core.c b/driver/serial_core.c
--- a/driver/serial_core.c	2024-12-19 23:55:10.560717647 -0500
+++ b/driver/serial_core.c	2024-12-19 23:55:57.227896775 -0500
@@ -681,11 +681,15 @@ static void uart_flush_buffer(struct tty
 
 /*
  * This function is used to send a high-priority XON/XOFF character to
  * the device
  */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0)
 static void uart_send_xchar(struct tty_struct *tty, char ch)
+#else
+static void uart_send_xchar(struct tty_struct *tty, u8 ch)
+#endif
 {
 	struct uart_state *state = tty->driver_data;
 	struct uart_port *port = state->uart_port;
 	unsigned long flags;