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
b=17167 libcfs: ensure all libcfs exported symbols to have cfs_ prefix
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
user-bitops.c
diff --git
a/libcfs/libcfs/user-bitops.c
b/libcfs/libcfs/user-bitops.c
index
7eb265b
..
4a266d3
100644
(file)
--- a/
libcfs/libcfs/user-bitops.c
+++ b/
libcfs/libcfs/user-bitops.c
@@
-40,8
+40,8
@@
#define OFF_BY_START(start) ((start)/BITS_PER_LONG)
#define OFF_BY_START(start) ((start)/BITS_PER_LONG)
-unsigned long find_next_bit(unsigned long *addr,
- unsigned long size, unsigned long offset)
+unsigned long
cfs_
find_next_bit(unsigned long *addr,
+
unsigned long size, unsigned long offset)
{
unsigned long *word, *last;
unsigned long first_bit, bit, base;
{
unsigned long *word, *last;
unsigned long first_bit, bit, base;
@@
-55,7
+55,7
@@
unsigned long find_next_bit(unsigned long *addr,
return size;
if (first_bit != 0) {
int tmp = (*word++) & (~0UL << first_bit);
return size;
if (first_bit != 0) {
int tmp = (*word++) & (~0UL << first_bit);
- bit = __ffs(tmp);
+ bit = __
cfs_
ffs(tmp);
if (bit < BITS_PER_LONG)
goto found;
word++;
if (bit < BITS_PER_LONG)
goto found;
word++;
@@
-63,7
+63,7
@@
unsigned long find_next_bit(unsigned long *addr,
}
while (word <= last) {
if (*word != 0UL) {
}
while (word <= last) {
if (*word != 0UL) {
- bit = __ffs(*word);
+ bit = __
cfs_
ffs(*word);
goto found;
}
word++;
goto found;
}
word++;
@@
-74,8
+74,8
@@
found:
return base + bit;
}
return base + bit;
}
-unsigned long find_next_zero_bit(unsigned long *addr,
- unsigned long size, unsigned long offset)
+unsigned long
cfs_
find_next_zero_bit(unsigned long *addr,
+
unsigned long size, unsigned long offset)
{
unsigned long *word, *last;
unsigned long first_bit, bit, base;
{
unsigned long *word, *last;
unsigned long first_bit, bit, base;
@@
-89,7
+89,7
@@
unsigned long find_next_zero_bit(unsigned long *addr,
return size;
if (first_bit != 0) {
int tmp = (*word++) & (~0UL << first_bit);
return size;
if (first_bit != 0) {
int tmp = (*word++) & (~0UL << first_bit);
- bit = __ffz(tmp);
+ bit = __
cfs_
ffz(tmp);
if (bit < BITS_PER_LONG)
goto found;
word++;
if (bit < BITS_PER_LONG)
goto found;
word++;
@@
-97,7
+97,7
@@
unsigned long find_next_zero_bit(unsigned long *addr,
}
while (word <= last) {
if (*word != ~0UL) {
}
while (word <= last) {
if (*word != ~0UL) {
- bit = __ffz(*word);
+ bit = __
cfs_
ffz(*word);
goto found;
}
word++;
goto found;
}
word++;