diff options
author | Chris Severance | 2023-12-19 00:56:55 -0500 |
---|---|---|
committer | Chris Severance | 2023-12-19 00:56:55 -0500 |
commit | fda929427fc1878a666fdddbbea2a4a1530b0f15 (patch) | |
tree | 974c1d267ea91eb2186c46efbf111d003484221b /0009-kernel-6.6-struct-tty_operations-write-size_t.patch | |
parent | 5114491c0f367e7112d5605a785dbdd5722d5c4c (diff) | |
download | aur-perle-serial.tar.gz |
autu: Update to 3.9.2.4-6
Diffstat (limited to '0009-kernel-6.6-struct-tty_operations-write-size_t.patch')
-rw-r--r-- | 0009-kernel-6.6-struct-tty_operations-write-size_t.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/0009-kernel-6.6-struct-tty_operations-write-size_t.patch b/0009-kernel-6.6-struct-tty_operations-write-size_t.patch new file mode 100644 index 000000000000..dbd8b090bcd5 --- /dev/null +++ b/0009-kernel-6.6-struct-tty_operations-write-size_t.patch @@ -0,0 +1,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; + |