summarylogtreecommitdiffstats
path: root/0007-kernel-6.0-set_termios-const-ktermios.patch
blob: a8dfbde989d2aba72288c1bfcfdb5f826d5cbffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -pNaru5 a/serial_core.c b/serial_core.c
--- a/serial_core.c	2023-01-03 00:11:58.950043260 -0500
+++ b/serial_core.c	2023-01-03 00:12:25.156698971 -0500
@@ -1368,10 +1368,13 @@ static void uart_set_ldisc(struct tty_st
 	if (uport->ops->set_ldisc)
 		uport->ops->set_ldisc(uport, tty->termios.c_line);
 }
 
 static void uart_set_termios(struct tty_struct *tty,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,0,0)
+const
+#endif
 						struct ktermios *old_termios)
 {
 	struct uart_state *state = tty->driver_data;
 	struct uart_port *uport = state->uart_port;
 	unsigned long flags;