Module: xenomai-3
Branch: stable-3.0.x
Commit: 04b565f0ff1cd1a18fe6aed9f06e234ed9307364
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=04b565f0ff1cd1a18fe6aed9f06e234ed9307364

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

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

---

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

diff --git a/kernel/cobalt/arch/arm/machine.c b/kernel/cobalt/arch/arm/machine.c
index 6768f90..50c14b4 100644
--- a/kernel/cobalt/arch/arm/machine.c
+++ b/kernel/cobalt/arch/arm/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