From 7ab72cec2dbb59f0963d55f27cbc57025fc6f579 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Sun, 5 Jan 2025 19:51:05 +0100 Subject: [PATCH 2/2] remove no_llseek for v6.12 As of Linux v6.0 all calls to ->llseek are called through vfs_llseek and setting no_llseek is equivalent to leaving it as NULL. The definition of no_llseek was removed in v6.12. Signed-off-by: Terin Stock --- vtty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vtty.c b/vtty.c index e086bd1..7931cde 100644 --- a/vtty.c +++ b/vtty.c @@ -684,7 +684,9 @@ static long vtmx_ioctl(struct file * filp, unsigned int cmd, unsigned long arg) static struct file_operations vtmx_fops = { .owner = THIS_MODULE, +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0) .llseek = no_llseek, +#endif .read = vtmx_read, .write = vtmx_write, .poll = vtmx_poll, -- 2.45.2