diff options
author | 2025-01-07 21:22:22 +0100 | |
---|---|---|
committer | 2025-01-07 21:22:22 +0100 | |
commit | 25998cb07d913ea786ede3c6fa4929033a608340 (patch) | |
tree | f4b157788a36162c4712c278b422213dc37cee87 /sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch | |
parent | sys-kernel/vtty: patches for 6.12 kernel (diff) | |
download | ebuilds-25998cb07d913ea786ede3c6fa4929033a608340.tar.xz |
sys-kernel/vtty: add 0_p20250105, drop 0_p20230917-r1
Diffstat (limited to 'sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch')
-rw-r--r-- | sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch b/sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch deleted file mode 100644 index 49dc6ba..0000000 --- a/sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch +++ /dev/null @@ -1,32 +0,0 @@ -From c5d9c7c52b958fa62c1a8680e9bf5c1170bfa03d Mon Sep 17 00:00:00 2001 -From: Terin Stock <terin@terinstock.com> -Date: Sun, 5 Jan 2025 19:50:24 +0100 -Subject: [PATCH 1/2] vtty_write with size_t counts for v6.6 - -As of Linux v6.6 the definition for tty_operations::write uses size_t to -unify with other tty_operations. - -Signed-off-by: Terin Stock <terin@terinstock.com> ---- - vtty.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/vtty.c b/vtty.c -index b3c6c65..e086bd1 100644 ---- a/vtty.c -+++ b/vtty.c -@@ -105,7 +105,11 @@ static void vtty_close(struct tty_struct *tty, struct file *filp) - return; - } - -+#if LINUX_VERSION_CODE > KERNEL_VERSION(6,6,0) -+static ssize_t vtty_write(struct tty_struct *tty, const u8 *buf, size_t count) -+#else - static int vtty_write(struct tty_struct *tty, const unsigned char *buf, int count) -+#endif - { - // the TTY layer manages -EAGAIN and (non-)blocking writes - struct vtty_port *port = &ports[tty->index]; --- -2.45.2 - |