]> git.hungrycats.org Git - linux/commitdiff
mm: make copy_pte_range static again
authorJerome Marchand <jmarchan@redhat.com>
Thu, 28 Aug 2014 18:35:37 +0000 (19:35 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 26 Sep 2014 09:52:07 +0000 (11:52 +0200)
commit 21bda264f4243f61dfcc485174055f12ad0530b4 upstream.

Commit 71e3aac0724f ("thp: transparent hugepage core") adds
copy_pte_range prototype to huge_mm.h.  I'm not sure why (or if) this
function have been used outside of memory.c, but it currently isn't.
This patch makes copy_pte_range() static again.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/linux/huge_mm.h
mm/memory.c

index a291552ab76778b54d14149e089fb4fd55867a5a..aac671be95819e9b0761e19f0cae7c72e0902e75 100644 (file)
@@ -92,10 +92,6 @@ extern bool is_vma_temporary_stack(struct vm_area_struct *vma);
 #endif /* CONFIG_DEBUG_VM */
 
 extern unsigned long transparent_hugepage_flags;
-extern int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
-                         pmd_t *dst_pmd, pmd_t *src_pmd,
-                         struct vm_area_struct *vma,
-                         unsigned long addr, unsigned long end);
 extern int split_huge_page_to_list(struct page *page, struct list_head *list);
 static inline int split_huge_page(struct page *page)
 {
index b870c9c5c89b2ba9dde0d10f877b1079b1fd7c2c..b5901068495fafb2ac3b7cc87d83c657a3debc4e 100644 (file)
@@ -878,7 +878,7 @@ out_set_pte:
        return 0;
 }
 
-int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
+static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
                   pmd_t *dst_pmd, pmd_t *src_pmd, struct vm_area_struct *vma,
                   unsigned long addr, unsigned long end)
 {