summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJerome Marchand <jmarchan@redhat.com>2014-08-06 16:06:56 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:19 -0700
commit21bda264f4243f61dfcc485174055f12ad0530b4 (patch)
treeedf7f25dcb13287e0e34908f76fc6096619cf2c2 /mm
parented4d4902ebdd7ca8b5a51daaf6bebf4b172895cc (diff)
downloadop-kernel-dev-21bda264f4243f61dfcc485174055f12ad0530b4.zip
op-kernel-dev-21bda264f4243f61dfcc485174055f12ad0530b4.tar.gz
mm: make copy_pte_range static again
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 06ff072..01d0289 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -884,7 +884,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)
{
OpenPOWER on IntegriCloud