]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc64: remove unused function straddles_64bit_va_hole()
authorKirill Tkhai <tkhai@yandex.ru>
Mon, 9 Jul 2012 14:22:11 +0000 (18:22 +0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 21:33:36 +0000 (14:33 -0700)
Nobody uses straddles_64bit_va_hole(). Remove it

Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys_sparc_64.c

index 275f74fd6f6a3f16fdd4e5fae291af2a364075c0..c38e5aaae56f2def7f8255a3347be46247c354f9 100644 (file)
@@ -66,23 +66,6 @@ static inline int invalid_64bit_range(unsigned long addr, unsigned long len)
        return 0;
 }
 
-/* Does start,end straddle the VA-space hole?  */
-static inline int straddles_64bit_va_hole(unsigned long start, unsigned long end)
-{
-       unsigned long va_exclude_start, va_exclude_end;
-
-       va_exclude_start = VA_EXCLUDE_START;
-       va_exclude_end   = VA_EXCLUDE_END;
-
-       if (likely(start < va_exclude_start && end < va_exclude_start))
-               return 0;
-
-       if (likely(start >= va_exclude_end && end >= va_exclude_end))
-               return 0;
-
-       return 1;
-}
-
 /* These functions differ from the default implementations in
  * mm/mmap.c in two ways:
  *