Skip to content

Commit

Permalink
bitops: rename for_each_bit() to for_each_set_bit(): mtd
Browse files Browse the repository at this point in the history
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.

I'll be sending a patch to Linus this week which removes the temporary
for_each_bit() macro, so this patch will be needed to avoid build
breakage.

Suggested-by: Alexey Dobriyan <adobriyan@gmail.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Artem Bityutskiy <dedekind@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Akinobu Mita authored and David Woodhouse committed Apr 8, 2010
1 parent 8da552f commit fed457a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/sm_ftl.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,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,
Expand Down

0 comments on commit fed457a

Please sign in to comment.