From 697d5d228bf49d1fdf88792d7e85ee08a20065b0 Mon Sep 17 00:00:00 2001 From: deftmartian <165921376+deftmartian@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:05:55 -0400 Subject: [PATCH 1/2] remove no_llseek from gasket_core.c --- src/gasket_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gasket_core.c b/src/gasket_core.c index 0b6e5b5..181c22d 100644 --- a/src/gasket_core.c +++ b/src/gasket_core.c @@ -1373,7 +1373,6 @@ static long gasket_ioctl(struct file *filp, uint cmd, ulong arg) /* File operations for all Gasket devices. */ static const struct file_operations gasket_file_ops = { .owner = THIS_MODULE, - .llseek = no_llseek, .mmap = gasket_mmap, .open = gasket_open, .release = gasket_release, From 31feacdd7f4af194aafb2cf8c55d177b54e73f89 Mon Sep 17 00:00:00 2001 From: deftmartian <165921376+deftmartian@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:17:22 -0400 Subject: [PATCH 2/2] Update gasket_core.c to remove no_llseek conditional on kernel version --- src/gasket_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gasket_core.c b/src/gasket_core.c index 181c22d..eb91218 100644 --- a/src/gasket_core.c +++ b/src/gasket_core.c @@ -1374,6 +1374,9 @@ static long gasket_ioctl(struct file *filp, uint cmd, ulong arg) static const struct file_operations gasket_file_ops = { .owner = THIS_MODULE, .mmap = gasket_mmap, + #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0) + .llseek = no_llseek, + #endif .open = gasket_open, .release = gasket_release, .unlocked_ioctl = gasket_ioctl,