mcctrl handle_mm_fault compat: add el7.5 support
Change-Id: I8c7738b70ca914e857be119b7720cdc22e61ae0e
This commit is contained in:
committed by
Masamichi Takagi
parent
29a658716b
commit
6cf89076dc
@@ -1842,11 +1842,12 @@ retry:
|
|||||||
goto out_release;
|
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);
|
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);
|
fault = handle_mm_fault(current->mm, vma, va, flags);
|
||||||
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) */
|
#endif
|
||||||
if (fault != 0) {
|
if (fault != 0) {
|
||||||
printk("%s: error: faulting %lx at off: %lu\n",
|
printk("%s: error: faulting %lx at off: %lu\n",
|
||||||
__FUNCTION__, va, off);
|
__FUNCTION__, va, off);
|
||||||
|
|||||||
Reference in New Issue
Block a user