summarylogtreecommitdiffstats
path: root/0010-kernel-6.12-no_llseek-NULL.patch
blob: 0fdd22b71bd0aa4d060abf813fe0b87cc4c69d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -pNaru5 a/driver/snx_ppdev.c b/driver/snx_ppdev.c
--- a/driver/snx_ppdev.c	2024-10-14 03:28:50.000000000 -0400
+++ b/driver/snx_ppdev.c	2024-12-24 01:03:47.726761122 -0500
@@ -1256,11 +1256,15 @@ static unsigned int snx_pp_poll(struct f
 
 
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 9))
 static struct file_operations snx_pp_fops = {
 	.owner		= THIS_MODULE,
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0))
 	.llseek		= no_llseek,
+#else
+	.llseek		= NULL,
+#endif
 	.read		= snx_pp_read,
 	.write		= snx_pp_write,
 	.poll		= snx_pp_poll,
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
   .ioctl    = snx_pp_ioctl,