VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Axel Rasmussen <axelrasmussen@google.com> 2021-05-04 18:35:45 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-05-05 11:27:22 -0700 commit: 714c189108244f1df579689061db1d785d92e7e2 parent: 0d9cadabd193c6008d256533f544de8206fd3a80
Commit Summary:
userfaultfd: hugetlbfs: only compile UFFD helpers if config enabled
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 84530876b2ae..b105a455124d 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -4855,6 +4855,7 @@ out_mutex:
 	return ret;
 }
 
+#ifdef CONFIG_USERFAULTFD
 /*
  * Used by userfaultfd UFFDIO_COPY.  Based on mcopy_atomic_pte with
  * modifications for huge pages.
@@ -4985,6 +4986,7 @@ out_release_nounlock:
 	put_page(page);
 	goto out;
 }
+#endif /* CONFIG_USERFAULTFD */
 
 static void record_subpages_vmas(struct page *page, struct vm_area_struct *vma,
 				 int refs, struct page **pages,