From: Andrew Morton Date: Thu, 29 Nov 2012 03:17:18 +0000 (+1100) Subject: mm-use-vm_unmapped_area-on-arm-architecture-fix X-Git-Tag: next-20121205~1^2~325 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=08a735c60845f13adc9b5c8aa7b7d5c99accaae6;p=karo-tx-linux.git 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 --- 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)<