Skip to contentSkip to conversation

bitops: rename for_each_bit() to for_each_set_bit(): mtd

PATCH Applied [email protected] 1 participant 1 message Mar 11, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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.

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]>

---

 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
diff -puN drivers/mtd/sm_ftl.c~bitops-rename-for_each_bit-to-for_each_set_bit-mtd drivers/mtd/sm_ftl.c
@@ -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,

_