mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user