summaryrefslogtreecommitdiffstats
path: root/lib/sbitmap.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2019-11-14 01:27:22 +0800
committerJens Axboe <axboe@kernel.dk>2019-11-13 12:50:40 -0700
commit708edafa883186f55b24fa0c380242b5282f9105 (patch)
treedffd29dc515e92d87e5ec25df0f66dcd354addf1 /lib/sbitmap.c
parentcb711b91a3c685192f2cabd3735ca3de04694ed8 (diff)
downloadlinux-708edafa883186f55b24fa0c380242b5282f9105.tar.gz
linux-708edafa883186f55b24fa0c380242b5282f9105.tar.bz2
linux-708edafa883186f55b24fa0c380242b5282f9105.zip
sbitmap: Delete sbitmap_any_bit_clear()
Since the only caller of this function has been deleted, delete this one also. Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/sbitmap.c')
-rw-r--r--lib/sbitmap.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/sbitmap.c b/lib/sbitmap.c
index 969e5400a615..33feec8989f1 100644
--- a/lib/sbitmap.c
+++ b/lib/sbitmap.c
@@ -236,23 +236,6 @@ bool sbitmap_any_bit_set(const struct sbitmap *sb)
}
EXPORT_SYMBOL_GPL(sbitmap_any_bit_set);
-bool sbitmap_any_bit_clear(const struct sbitmap *sb)
-{
- unsigned int i;
-
- for (i = 0; i < sb->map_nr; i++) {
- const struct sbitmap_word *word = &sb->map[i];
- unsigned long mask = word->word & ~word->cleared;
- unsigned long ret;
-
- ret = find_first_zero_bit(&mask, word->depth);
- if (ret < word->depth)
- return true;
- }
- return false;
-}
-EXPORT_SYMBOL_GPL(sbitmap_any_bit_clear);
-
static unsigned int __sbitmap_weight(const struct sbitmap *sb, bool set)
{
unsigned int i, weight = 0;