[Devel] [PATCH rh7] mm: zap pte_ptrs and same_ub macros
Vladimir Davydov
vdavydov at parallels.com
Fri May 22 01:45:01 PDT 2015
They were added by commit 1da9426dc5c49, which ported stuff from RH6.
They are not used, so zap them.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
mm/memory.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/mm/memory.c b/mm/memory.c
index 1214542a019c..2f098395b242 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -917,13 +917,6 @@ out_set_pte:
return 0;
}
-#define pte_ptrs(a) (PTRS_PER_PTE - ((a >> PAGE_SHIFT)&(PTRS_PER_PTE - 1)))
-#ifdef CONFIG_BEANCOUNTERS
-#define same_ub(mm1, mm2) ((mm1)->mm_ub == (mm2)->mm_ub)
-#else
-#define same_ub(mm1, mm2) 1
-#endif
-
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)
--
1.7.10.4
More information about the Devel
mailing list