summaryrefslogtreecommitdiff
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-09-17 20:07:11 -0700
committerYury Norov <yury.norov@gmail.com>2022-09-26 12:19:12 -0700
commit70a1cb106d9410f1f37e0261728e46722b74c29f (patch)
tree8ea8f66801464c3a08292adbc1c8096cd8047136 /lib/bitmap.c
parent6333cb31a711cc709b6a960d082e04546f4459ee (diff)
downloadlwn-70a1cb106d9410f1f37e0261728e46722b74c29f.tar.gz
lwn-70a1cb106d9410f1f37e0261728e46722b74c29f.zip
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.c2
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);
}
/**