summarylogtreecommitdiffstats
path: root/0008-kernel-6.0-set_termios-const-ktermios.patch
blob: 6b9aa983a7d6589897203ce37d1ca873d2ce2401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -pNaru5 a/pserial/perle-serial.c b/pserial/perle-serial.c
--- a/pserial/perle-serial.c	2023-01-29 04:15:33.238149934 -0500
+++ b/pserial/perle-serial.c	2023-01-29 04:17:17.041142672 -0500
@@ -3153,11 +3153,13 @@ static int ps_ioctl(struct tty_struct *t
 		return -ENOIOCTLCMD;
 	}
 	return 0;
 }
 
-#if (LINUX_VERSION_CODE >  0x20612)		// 2.6.18
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
+static void ps_set_termios(struct tty_struct *tty, const struct ktermios *old_termios)
+#elif (LINUX_VERSION_CODE >  0x20612)		// 2.6.18
 static void ps_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
 #else
 static void ps_set_termios(struct tty_struct *tty, struct termios *old_termios)
 #endif
 {