bitops: rename for_each_bit() to for_each_set_bit(): mtd
PATCH 2/2 bitops: rename for_each_bit() to for_each_set_bit(): mtd
From: Akinobu Mita <[email protected]>
Rename for_each_bit to for_each_set_bit in the kernel source tree. To permit for_each_clear_bit(), should that ever be added.
Suggested-by Alexey Dobriyan <[email protected]>
Suggested-by Andrew Morton <[email protected]>
Signed-off-by Akinobu Mita <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Russell King <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Artem Bityutskiy <[email protected]>
Cc Stephen Rothwell <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/mtd/sm_ftl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/sm_ftl.c renamed from drivers/mtd/sm_ftl.c~bitops-rename-for_each_bit-to-for_each_set_bit-mtd +1 -1
@@ -937,7 +937,7 @@ int sm_cache_flush(struct sm_ftl *ftl)/* Try to read all unread areas of the cache block*/ - for_each_bit(sector_num, &ftl->cache_data_invalid_bitmap, + for_each_set_bit(sector_num, &ftl->cache_data_invalid_bitmap, ftl->block_size / SM_SECTOR_SIZE) { if (!sm_read_sector(ftl,
_