blob: dbd8b090bcd52a3be2663d61f49ddeebd3f9800f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -pNaru5 a/pserial/perle-serial.c b/pserial/perle-serial.c
--- a/pserial/perle-serial.c 2023-12-19 00:14:42.357856502 -0500
+++ b/pserial/perle-serial.c 2023-12-19 00:14:51.337954324 -0500
@@ -2158,12 +2158,17 @@ static int ps_write(struct tty_struct *
}
#else // linux kernel is at least 2.6.10 - write prototype has "from_user"
// removed from parameter list.
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0)
static int ps_write(struct tty_struct * tty,
const unsigned char *buf, int count)
+#else
+static ssize_t ps_write(struct tty_struct * tty,
+ const unsigned char *buf, size_t count)
+#endif
{
int c, ret = 0;
struct ps_async_struct *info = (struct ps_async_struct *)tty->driver_data;
unsigned long flags;
|