bitops: remove for_each_set_bit_cont()
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 23 Mar 2012 22:02:04 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:33 +0000 (16:58 -0700)
Remove for_each_set_bit_cont() after confirming that no one uses
for_each_set_bit_cont() anymore.

[sfr@canb.auug.org.au: regmap: cope with bitops API change]
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/regmap/regcache-lzo.c
include/linux/bitops.h

index 8d0061569326b9a79024a03a4ec1023c18ab0bde..77dc53272289ddadf058903288d7dd0bbd46900e 100644 (file)
@@ -341,7 +341,7 @@ static int regcache_lzo_sync(struct regmap *map, unsigned int min,
 
        lzo_blocks = map->cache;
        i = min;
-       for_each_set_bit_cont(i, lzo_blocks[0]->sync_bmp,
+       for_each_set_bit_from(i, lzo_blocks[0]->sync_bmp,
                              lzo_blocks[0]->sync_bmp_nbits) {
                if (i > max)
                        continue;
index a78e358f0c1736240ffa32a26e088b11cdaed086..348b1dca477a1c9b3b579ade963c5aca57df4d4b 100644 (file)
@@ -32,9 +32,6 @@ extern unsigned long __sw_hweight64(__u64 w);
             (bit) < (size);                                    \
             (bit) = find_next_bit((addr), (size), (bit) + 1))
 
-#define for_each_set_bit_cont(bit, addr, size) \
-       for_each_set_bit_from(bit, addr, size)
-
 static __inline__ int get_bitmask_order(unsigned int count)
 {
        int order;