mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-21 17:44:04 +08:00
Merge branch 'fix_vm_set_flag' into 'stable-1.5'
Fix setting flag in vm_area_struct for Kernel 6.3 See merge request etherlab.org/ethercat!67
This commit is contained in:
@@ -243,7 +243,11 @@ int eccdev_mmap(
|
||||
EC_MASTER_DBG(priv->cdev->master, 1, "mmap()\n");
|
||||
|
||||
vma->vm_ops = &eccdev_vm_ops;
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
|
||||
vm_flags_set(vma, VM_DONTDUMP);
|
||||
#else
|
||||
vma->vm_flags |= VM_DONTDUMP; /* Pages will not be swapped out */
|
||||
#endif
|
||||
vma->vm_private_data = priv;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user