Skip to content

Commit

Permalink
sparc64: remove unused function straddles_64bit_va_hole()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill Tkhai authored and David S. Miller committed Jul 9, 2012
1 parent 6a8ead0 commit d55de60
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions arch/sparc/kernel/sys_sparc_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
*
Expand Down

0 comments on commit d55de60

Please sign in to comment.