]> git.itanic.dy.fi Git - linux-stable/commitdiff
mm: make copy_pte_range static again
authorJerome Marchand <jmarchan@redhat.com>
Wed, 6 Aug 2014 23:06:56 +0000 (16:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2015 01:40:52 +0000 (17:40 -0800)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/huge_mm.h
mm/memory.c

index b826239bdce0b26a614ae0802782860348dd6fc6..63579cb8d3dcfb5b7d36b80cc19d784e1522e3c9 100644 (file)
@@ -93,10 +93,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 728eba39d4fc6ab361140f3f5ca0f6e90f90e326..7f30beaba74f458db761ec0d935f0f44b3ffd1f3 100644 (file)
@@ -878,7 +878,7 @@ copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm,
        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)
 {