summarylogtreecommitdiffstats
path: root/0008-kernel-6.0-set_termios-const-ktermios.patch
diff options
context:
space:
mode:
authorChris Severance2023-01-29 04:22:55 -0500
committerChris Severance2023-01-29 04:22:55 -0500
commit5114491c0f367e7112d5605a785dbdd5722d5c4c (patch)
treeb5bb5bc12b5892e414d82bc3ae3a11059e67b85f /0008-kernel-6.0-set_termios-const-ktermios.patch
parent85af90564d0604f4db24cbef180922e0c50f88a6 (diff)
downloadaur-5114491c0f367e7112d5605a785dbdd5722d5c4c.tar.gz
autu: Update to 3.9.2.4-5
Diffstat (limited to '0008-kernel-6.0-set_termios-const-ktermios.patch')
-rw-r--r--0008-kernel-6.0-set_termios-const-ktermios.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/0008-kernel-6.0-set_termios-const-ktermios.patch b/0008-kernel-6.0-set_termios-const-ktermios.patch
new file mode 100644
index 000000000000..772dc359e85a
--- /dev/null
+++ b/0008-kernel-6.0-set_termios-const-ktermios.patch
@@ -0,0 +1,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,0,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
+ {