lib/bitmap: don't call __bitmap_weight() in kernel code
[linux-block.git] / lib / bitmap.c
index 488e6c3e5acc8f115f1968584db497ea99d9798c..d56e275db73ed94891f12a4655fc71fdfd0de933 100644 (file)
@@ -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);
 }
 
 /**