Skip to content
Snippets Groups Projects
Commit 6dcc76a1 authored by belle2daq's avatar belle2daq
Browse files

Replace VM_DONTDUMP macro for kernels older than 3.7 by VM_RESERVED

parent 4c62a470
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,12 @@ static int altera_dma_mmap(struct file *file,struct vm_area_struct *vma ) {
struct pcie40_dma_state *bk_ptr;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,6,999)
vma->vm_flags |= VM_RESERVED ;
#else
vma->vm_flags |= (VM_DONTEXPAND | VM_DONTDUMP);
#endif
size = vma->vm_end - vma->vm_start;
bk_ptr = file->private_data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment