Commit 97edbb7f authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[SPARC64]: Make first arg to find_next_zero_bit() const.

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de44a4dd
......@@ -50,9 +50,10 @@ unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
* on Linus's ALPHA routines, which are pretty portable BTW.
*/
unsigned long find_next_zero_bit(unsigned long *addr, unsigned long size, unsigned long offset)
unsigned long find_next_zero_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 tmp;
......
......@@ -223,7 +223,8 @@ extern unsigned long find_next_bit(const unsigned long *, unsigned long,
* on Linus's ALPHA routines, which are pretty portable BTW.
*/
extern unsigned long find_next_zero_bit(unsigned long *, unsigned long, unsigned long);
extern unsigned long find_next_zero_bit(const unsigned long *,
unsigned long, unsigned long);
#define find_first_zero_bit(addr, size) \
find_next_zero_bit((addr), (size), 0)
......
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