git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
sparc64
/
lib
/
find_bit.c
diff --git
a/arch/sparc64/lib/find_bit.c
b/arch/sparc64/lib/find_bit.c
index
5852614
..
6059557
100644
(file)
--- a/
arch/sparc64/lib/find_bit.c
+++ b/
arch/sparc64/lib/find_bit.c
@@
-1,4
+1,4
@@
-#include <
asm
/bitops.h>
+#include <
linux
/bitops.h>
/**
* find_next_bit - find the next set bit in a memory region
/**
* find_next_bit - find the next set bit in a memory region
@@
-50,9
+50,10
@@
found_middle:
* on Linus's ALPHA routines, which are pretty portable BTW.
*/
* 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;
unsigned long result = offset & ~63UL;
unsigned long tmp;