bitmap: unify find_bit operations
authorYury Norov <yury.norov@gmail.com>
Sat, 14 Aug 2021 21:17:11 +0000 (14:17 -0700)
committerYury Norov <yury.norov@gmail.com>
Sat, 2 Oct 2021 23:13:57 +0000 (16:13 -0700)
commit20a31ee8ae3a1a3d3742afae3a18381a850d6e7b
tree1040a190725f4b2e99a180b90d5173da3da84940
parente0ce85629ef22aaf8b5d65bc462bcaeff8e41320
bitmap: unify find_bit operations

bitmap_for_each_{set,clear}_region() are similar to for_each_bit()
macros in include/linux/find.h, but interface and implementation
of them are different.

This patch adds for_each_bitrange() macros and drops unused
bitmap_*_region() API in sake of unification.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Dennis Zhou <dennis@kernel.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC
drivers/mmc/host/renesas_sdhi_core.c
include/linux/bitmap.h
include/linux/find.h
mm/percpu.c