projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/bitmap: don't call __bitmap_weight() in kernel code
[linux-block.git]
/
lib
/
bitmap.c
diff --git
a/lib/bitmap.c
b/lib/bitmap.c
index 488e6c3e5acc8f115f1968584db497ea99d9798c..d56e275db73ed94891f12a4655fc71fdfd0de933 100644
(file)
--- a/
lib/bitmap.c
+++ b/
lib/bitmap.c
@@
-953,7
+953,7
@@
static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigne
if (pos >= nbits || !test_bit(pos, buf))
return -1;
- return
__
bitmap_weight(buf, pos);
+ return bitmap_weight(buf, pos);
}
/**