OBS-URL: https://build.opensuse.org/package/show/hardware/gasket-driver?expand=0&rev=c49134298e2a409ff77fa24e1782f2f3
15 lines
498 B
Diff
15 lines
498 B
Diff
diff --git a/src/gasket_core.c b/src/gasket_core.c
|
|
index b1c2726..107dfad 100644
|
|
--- a/src/gasket_core.c
|
|
+++ b/src/gasket_core.c
|
|
@@ -1373,7 +1373,9 @@ 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,
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0)
|
|
.llseek = no_llseek,
|
|
+#endif
|
|
.mmap = gasket_mmap,
|
|
.open = gasket_open,
|
|
.release = gasket_release,
|