Skip to content

Commit

Permalink
feat: Centos Stream 9 support for the kmod.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzyjamroz committed Nov 13, 2024
1 parent 2c0badf commit 027d712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mrmShared/linux/uio_mrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ int mrf_mmap_physical(struct uio_info *info, struct vm_area_struct *vma)
return -EINVAL;
}

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0))
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
vm_flags_set(vma, VM_IO | VM_RESERVED);
#elif defined(RHEL_RELEASE_CODE) && (RHEL_RELEASE_CODE >= 2310)
vm_flags_set(vma, VM_IO | VM_RESERVED);
#else
vma->vm_flags |= VM_IO | VM_RESERVED;
Expand Down

0 comments on commit 027d712

Please sign in to comment.