Module: xenomai-3
Branch: next
Commit: 23ed7a46234269149e839809782a5d85b40293a6
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=23ed7a46234269149e839809782a5d85b40293a6

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 15 17:03:02 2017 +0200

cobalt/arm64: fix build w/ pre-4.8 kernels

---

 kernel/cobalt/arch/arm64/machine.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/cobalt/arch/arm64/machine.c 
b/kernel/cobalt/arch/arm64/machine.c
index 1711d76..b8f80ac 100644
--- a/kernel/cobalt/arch/arm64/machine.c
+++ b/kernel/cobalt/arch/arm64/machine.c
@@ -35,7 +35,11 @@ static void mach_arm_prefault(struct vm_area_struct *vma)
                flags = (vma->vm_flags & VM_MAYWRITE) ? FAULT_FLAG_WRITE : 0;
                for (addr = vma->vm_start;
                     addr != vma->vm_end; addr += PAGE_SIZE)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+                       handle_mm_fault(vma->vm_mm, vma, addr, flags);
+#else
                        handle_mm_fault(vma, addr, flags);
+#endif
        }
 }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to