From 266deb40cf44a70c804abe6f4a01f2f9793a5e7b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 9 Nov 2012 14:04:26 +1100 Subject: [PATCH] mm-use-vm_unmapped_area-on-mips-architecture-fix remove now-unused COLOUR_ALIGN_DOWN() Cc: "David S. Miller" Cc: "H. Peter Anvin" Cc: Chris Metcalf Cc: Hugh Dickins Cc: Ingo Molnar Cc: Michel Lespinasse Cc: Paul Mundt Cc: Ralf Baechle Cc: Rik van Riel Cc: Russell King Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- arch/mips/mm/mmap.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c index e4b54b233e17..d9be7540a6be 100644 --- a/arch/mips/mm/mmap.c +++ b/arch/mips/mm/mmap.c @@ -45,18 +45,6 @@ static unsigned long mmap_base(unsigned long rnd) return PAGE_ALIGN(TASK_SIZE - gap - rnd); } -static inline unsigned long COLOUR_ALIGN_DOWN(unsigned long addr, - unsigned long pgoff) -{ - unsigned long base = addr & ~shm_align_mask; - unsigned long off = (pgoff << PAGE_SHIFT) & shm_align_mask; - - if (base + off <= addr) - return base + off; - - return base - off; -} - #define COLOUR_ALIGN(addr, pgoff) \ ((((addr) + shm_align_mask) & ~shm_align_mask) + \ (((pgoff) << PAGE_SHIFT) & shm_align_mask)) -- 2.39.5