Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use userland bitops from libcfs.
[fs/lustre-release.git]
/
lnet
/
include
/
libcfs
/
user-bitops.h
diff --git
a/lnet/include/libcfs/user-bitops.h
b/lnet/include/libcfs/user-bitops.h
index
272bcf2
..
43fc2f1
100644
(file)
--- a/
lnet/include/libcfs/user-bitops.h
+++ b/
lnet/include/libcfs/user-bitops.h
@@
-50,7
+50,7
@@
static __inline__ int clear_bit(int nr, long * addr)
return nr;
}
-static __inline__ int test_bit(int nr, long * addr)
+static __inline__ int test_bit(int nr,
const
long * addr)
{
return ((1UL << (nr & (BITS_PER_LONG - 1))) & ((addr)[nr / BITS_PER_LONG])) != 0;
}