From 3ce27644230bc35ab9c50bba89ea6a56ed065c92 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-arm-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/arm/mm/mmap.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm/mm/mmap.c b/arch/arm/mm/mmap.c index a2c38137aaef..f4fec6d43d50 100644 --- a/arch/arm/mm/mmap.c +++ b/arch/arm/mm/mmap.c @@ -11,18 +11,6 @@ #include #include -static inline unsigned long COLOUR_ALIGN_DOWN(unsigned long addr, - unsigned long pgoff) -{ - unsigned long base = addr & ~(SHMLBA-1); - unsigned long off = (pgoff << PAGE_SHIFT) & (SHMLBA-1); - - if (base + off <= addr) - return base + off; - - return base - off; -} - #define COLOUR_ALIGN(addr,pgoff) \ ((((addr)+SHMLBA-1)&~(SHMLBA-1)) + \ (((pgoff)<