Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f73ba
)
linlustre: mark second argument of test_bit() const
author
nikita
<nikita>
Thu, 22 Jun 2006 21:52:45 +0000
(21:52 +0000)
committer
nikita
<nikita>
Thu, 22 Jun 2006 21:52:45 +0000
(21:52 +0000)
lustre/include/liblustre.h
patch
|
blob
|
history
diff --git
a/lustre/include/liblustre.h
b/lustre/include/liblustre.h
index
2bc0dcd
..
aaa369d
100644
(file)
--- a/
lustre/include/liblustre.h
+++ b/
lustre/include/liblustre.h
@@
-212,7
+212,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;
}