diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-09-17 20:07:11 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-09-26 12:19:12 -0700 |
commit | 70a1cb106d9410f1f37e0261728e46722b74c29f (patch) | |
tree | 8ea8f66801464c3a08292adbc1c8096cd8047136 /lib/bitmap.c | |
parent | 6333cb31a711cc709b6a960d082e04546f4459ee (diff) |
lib/bitmap: don't call __bitmap_weight() in kernel code
__bitmap_weight() is not to be used directly in the kernel code because
it's a helper for bitmap_weight(). Switch everything to bitmap_weight().
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'lib/bitmap.c')
-rw-r--r-- | lib/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c index 488e6c3e5acc..d56e275db73e 100644 --- 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); } /** |