bitops: rename for_each_set_bit_cont() in favor of analogous list.h function
[deliverable/linux.git] / include / linux / bitops.h
index 94300fe46ccedd4ca5333fad2b0bac4a74b704b0..a78e358f0c1736240ffa32a26e088b11cdaed086 100644 (file)
@@ -27,11 +27,14 @@ extern unsigned long __sw_hweight64(__u64 w);
             (bit) = find_next_bit((addr), (size), (bit) + 1))
 
 /* same as for_each_set_bit() but use bit as value to start with */
-#define for_each_set_bit_cont(bit, addr, size) \
+#define for_each_set_bit_from(bit, addr, size) \
        for ((bit) = find_next_bit((addr), (size), (bit));      \
             (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;
This page took 0.028797 seconds and 5 git commands to generate.