Commit 5de57587 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[SPARC64]: Make find_next_bit take a const pointer.

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent e3a2c92a
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
* @offset: The bitnumber to start searching at * @offset: The bitnumber to start searching at
* @size: The maximum size to search * @size: The maximum size to search
*/ */
unsigned long find_next_bit(unsigned long *addr, unsigned long size, unsigned long offset) unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
unsigned long offset)
{ {
unsigned long *p = addr + (offset >> 6); const unsigned long *p = addr + (offset >> 6);
unsigned long result = offset & ~63UL; unsigned long result = offset & ~63UL;
unsigned long tmp; unsigned long tmp;
......
...@@ -204,7 +204,8 @@ static __inline__ unsigned int hweight8(unsigned int w) ...@@ -204,7 +204,8 @@ static __inline__ unsigned int hweight8(unsigned int w)
* @offset: The bitnumber to start searching at * @offset: The bitnumber to start searching at
* @size: The maximum size to search * @size: The maximum size to search
*/ */
extern unsigned long find_next_bit(unsigned long *, unsigned long, unsigned long); extern unsigned long find_next_bit(const unsigned long *, unsigned long,
unsigned long);
/** /**
* find_first_bit - find the first set bit in a memory region * find_first_bit - find the first set bit in a memory region
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment