summaryrefslogtreecommitdiff
path: root/sys-kernel/vtty/files/0002-remove-no_llseek-for-v6.12.patch
blob: 19f3437cd246887d9faee752935fed159202c06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 7ab72cec2dbb59f0963d55f27cbc57025fc6f579 Mon Sep 17 00:00:00 2001
From: Terin Stock <terin@terinstock.com>
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 <terin@terinstock.com>
---
 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