diff --git a/tty/module.c b/tty/module.c index 9b5b1d6c..a0673b2b 100644 --- a/tty/module.c +++ b/tty/module.c @@ -657,8 +657,13 @@ static int ec_tty_ioctl(struct tty_struct *tty, /*****************************************************************************/ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) +static void ec_tty_set_termios(struct tty_struct *tty, + const struct ktermios *old_termios) +#else static void ec_tty_set_termios(struct tty_struct *tty, struct ktermios *old_termios) +#endif { ec_tty_t *t = (ec_tty_t *) tty->driver_data; int ret;