diff --git a/src/gasket_core.c b/src/gasket_core.c index 0b6e5b5..eb91218 100644 --- a/src/gasket_core.c +++ b/src/gasket_core.c @@ -1373,8 +1373,10 @@ 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, + #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0) + .llseek = no_llseek, + #endif .open = gasket_open, .release = gasket_release, .unlocked_ioctl = gasket_ioctl,