summarylogtreecommitdiffstats
path: root/0011-kernel-6.0-set_termios-const-ktermios.patch
diff options
context:
space:
mode:
Diffstat (limited to '0011-kernel-6.0-set_termios-const-ktermios.patch')
-rw-r--r--0011-kernel-6.0-set_termios-const-ktermios.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0011-kernel-6.0-set_termios-const-ktermios.patch b/0011-kernel-6.0-set_termios-const-ktermios.patch
new file mode 100644
index 000000000000..8db4ce693efe
--- /dev/null
+++ b/0011-kernel-6.0-set_termios-const-ktermios.patch
@@ -0,0 +1,35 @@
+diff -pNaru5 a/driver/2.6.27/dgnc_tty.c b/driver/2.6.27/dgnc_tty.c
+--- a/driver/2.6.27/dgnc_tty.c 2023-01-28 15:45:44.006164787 -0500
++++ b/driver/2.6.27/dgnc_tty.c 2023-01-28 15:48:09.570243005 -0500
+@@ -152,11 +152,15 @@ static int dgnc_tty_tiocmget(struct tty_
+ static int dgnc_tty_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear);
+ #endif
+ static int dgnc_tty_send_break(struct tty_struct *tty, int msec);
+ static void dgnc_tty_wait_until_sent(struct tty_struct *tty, int timeout);
+ static int dgnc_tty_write(struct tty_struct *tty, const unsigned char *buf, int count);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0)
+ static void dgnc_tty_set_termios(struct tty_struct *tty, struct ktermios *old_termios);
++#else
++static void dgnc_tty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios);
++#endif
+ static void dgnc_tty_send_xchar(struct tty_struct *tty, char ch);
+
+
+ static const struct tty_operations dgnc_tty_ops = {
+ .open = dgnc_tty_open,
+@@ -2999,11 +3003,15 @@ static int dgnc_tty_digiseta(struct tty_
+
+
+ /*
+ * dgnc_set_termios()
+ */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0)
+ static void dgnc_tty_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
++#else
++static void dgnc_tty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios)
++#endif
+ {
+ struct board_t *bd;
+ struct channel_t *ch;
+ struct un_t *un;
+ unsigned long lock_flags;