mcctrl handle_mm_fault compat: add el7.5 support

Change-Id: I8c7738b70ca914e857be119b7720cdc22e61ae0e
This commit is contained in:
Dominique Martinet
2018-07-31 11:00:20 +09:00
committed by Masamichi Takagi
parent 29a658716b
commit 6cf89076dc

View File

@@ -1842,11 +1842,12 @@ retry:
goto out_release;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) || \
(defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5))
fault = handle_mm_fault(vma, va, flags);
#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) */
#else
fault = handle_mm_fault(current->mm, vma, va, flags);
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) */
#endif
if (fault != 0) {
printk("%s: error: faulting %lx at off: %lu\n",
__FUNCTION__, va, off);