Skip to content

Commit

Permalink
Update gasket_core.c to remove no_llseek conditional on kernel version
Browse files Browse the repository at this point in the history
  • Loading branch information
deftmartian committed Dec 30, 2024
1 parent 697d5d2 commit 31feacd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gasket_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 31feacd

Please sign in to comment.