[folded-merged] mm-speed-up-mremap-by-20x-on-large-regions-v5-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm/mremap: fix 'move_normal_pmd' unused function warning
has been removed from the -mm tree.  Its filename was
     mm-speed-up-mremap-by-20x-on-large-regions-v5-fix.patch

This patch was dropped because it was folded into mm-speed-up-mremap-by-20x-on-large-regions-v5.patch

------------------------------------------------------
From: "Joel Fernandes (Google)" <joel@xxxxxxxxxxxxxxxxx>
Subject: mm/mremap: fix 'move_normal_pmd' unused function warning

The move_normal_pmd function may not be used on architectures that don't
enable HAVE_MOVE_PMD.  This has shown to cause unused function warnings on
those architectures.  Lets not define it for those cases.

Link: http://lkml.kernel.org/r/20181108224457.GB209347@xxxxxxxxxx
Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx>
Reported-by: Will Deacon <will.deacon@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/mremap.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/mm/mremap.c~mm-speed-up-mremap-by-20x-on-large-regions-v5-fix
+++ a/mm/mremap.c
@@ -191,6 +191,7 @@ static void move_ptes(struct vm_area_str
 		drop_rmap_locks(vma);
 }
 
+#ifdef CONFIG_HAVE_MOVE_PMD
 static bool move_normal_pmd(struct vm_area_struct *vma, unsigned long old_addr,
 		  unsigned long new_addr, unsigned long old_end,
 		  pmd_t *old_pmd, pmd_t *new_pmd)
@@ -234,6 +235,7 @@ static bool move_normal_pmd(struct vm_ar
 
 	return true;
 }
+#endif
 
 unsigned long move_page_tables(struct vm_area_struct *vma,
 		unsigned long old_addr, struct vm_area_struct *new_vma,
_

Patches currently in -mm which might be from joel@xxxxxxxxxxxxxxxxx are

mm-treewide-remove-unused-address-argument-from-pte_alloc-functions-v2.patch
mm-speed-up-mremap-by-20x-on-large-regions-v5.patch
mm-select-have_move_pmd-in-x86-for-faster-mremap.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux