diff options
author | Kirill Tkhai <tkhai@yandex.ru> | 2012-07-09 10:22:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-09 17:33:36 -0400 |
commit | d55de60564c90cfd5a55122772c9af7d34e4f665 (patch) | |
tree | 119f3215b4aed66e09cbb63e2104e66ab276459e /arch | |
parent | 6a8ead0bf0b8d3c8d9107c268d2f29924d2f9840 (diff) |
sparc64: remove unused function straddles_64bit_va_hole()
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/sys_sparc_64.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index 275f74fd6f6a..c38e5aaae56f 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c | |||
@@ -66,23 +66,6 @@ static inline int invalid_64bit_range(unsigned long addr, unsigned long len) | |||
66 | return 0; | 66 | return 0; |
67 | } | 67 | } |
68 | 68 | ||
69 | /* Does start,end straddle the VA-space hole? */ | ||
70 | static inline int straddles_64bit_va_hole(unsigned long start, unsigned long end) | ||
71 | { | ||
72 | unsigned long va_exclude_start, va_exclude_end; | ||
73 | |||
74 | va_exclude_start = VA_EXCLUDE_START; | ||
75 | va_exclude_end = VA_EXCLUDE_END; | ||
76 | |||
77 | if (likely(start < va_exclude_start && end < va_exclude_start)) | ||
78 | return 0; | ||
79 | |||
80 | if (likely(start >= va_exclude_end && end >= va_exclude_end)) | ||
81 | return 0; | ||
82 | |||
83 | return 1; | ||
84 | } | ||
85 | |||
86 | /* These functions differ from the default implementations in | 69 | /* These functions differ from the default implementations in |
87 | * mm/mmap.c in two ways: | 70 | * mm/mmap.c in two ways: |
88 | * | 71 | * |