| From: Mike Kravetz <mike.kravetz@oracle.com> |
| Subject: hugetlb: fix build issue for missing hugetlb_vma_lock_release |
| |
| Add a stub for hugetlb_vma_lock_release to build in the case |
| CONFIG_HUGETLB_PAGE && !CONFIG_ARCH_WANT_HUGE_PMD_SHARE. |
| |
| Link: https://lkml.kernel.org/r/YyNUtA1vRASOE4+M@monkey |
| Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com> |
| Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/hugetlb.c | 5 +++++ |
| 1 file changed, 5 insertions(+) |
| |
| --- a/mm/hugetlb.c~hugetlb-add-vma-based-lock-for-pmd-sharing-fix |
| +++ a/mm/hugetlb.c |
| @@ -6942,6 +6942,11 @@ int huge_pmd_unshare(struct mm_struct *m |
| } |
| |
| #else /* !CONFIG_ARCH_WANT_HUGE_PMD_SHARE */ |
| + |
| +void hugetlb_vma_lock_release(struct kref *kref) |
| +{ |
| +} |
| + |
| static void hugetlb_vma_lock_free(struct vm_area_struct *vma) |
| { |
| } |
| _ |