blob: d34cebd345ab9f9aac39325bd904fa94d5708f33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff -pNaru5 a/driver/serial_core.c b/driver/serial_core.c
--- a/driver/serial_core.c 2023-01-03 00:11:58.950043260 -0500
+++ b/driver/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,1,0)
+const
+#endif
struct ktermios *old_termios)
{
struct uart_state *state = tty->driver_data;
struct uart_port *uport = state->uart_port;
unsigned long flags;
|