forwarded 1029135 https://github.com/xtrx-sdr/xtrx_linux_pcie_drv/pull/15
thanks

I fixed this bug. The patch is as attachment.

Yours,
Paul

Description: xtrx.c: fix build error with kernel 6.1
 uart_ops.set_termios type changes a little in kernel 6.1. Thus
 we need to change xtrx_uart_set_termios() third parameter as a
 const pointer when building with kernel version >= 6.1
Forwarded: https://github.com/xtrx-sdr/xtrx_linux_pcie_drv/pull/15
Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
Last-Update: 2023-01-21
Index: xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c
===================================================================
--- xtrx-dkms-0.0.1+git20190320.5ae3a3e.orig/xtrx.c
+++ xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c
@@ -361,8 +361,13 @@ static void xtrx_uart_shutdown(struct ua
 }
 
 static void xtrx_uart_set_termios(struct uart_port *port,
-				 struct ktermios *new,
-				 struct ktermios *old)
+				  struct ktermios *new,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0)
+				  struct ktermios *old
+#else
+				  const struct ktermios *old
+#endif
+	)
 {
 	unsigned long flags;
 

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to