Skip to content

bitops: introduce for_each_clear_bit()

Akinobu Mita linux-mtd linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7bitops: rename for_each_set_bit_cont in favor of anologous to list.h functionarch/x86/kernel/cpu/perf_event.c include/linux/bitops.h tools/perf/util/include/linux/bitops.h+7 -40 replies
2/7bitops: remove for_each_set_bit_continclude/linux/bitops.h+0 -30 replies
3/7bitops: introduce list_for_each_clear_bitinclude/linux/bitops.h+11 -02 replies
4/7mtd: use for_each_clear_bitdrivers/mtd/chips/cfi_cmdset_0001.c+2 -40 replies
5/7s390/char: use for_each_clear_bitdrivers/s390/char/sclp_cmd.c+2 -30 replies
6/7uwb: use for_each_clear_bitdrivers/uwb/allocator.c+2 -40 replies
7/7x86: use for_each_clear_bit_fromarch/x86/kernel/irqinit.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] bitops: introduce for_each_clear_bit()

This patch set introduces for_each_clear_bit() which is similar to for_each_set_bit(), but it iterates over all the cleared bits in a memory region.

This also renames for_each_set_bit_cont() to for_each_set_bit_from() because it is anologous to list_for_each_entry_from() in list.h rather than list_for_each_entry_continue(), and then introduces for_each_clear_bit_from(), too.

Akinobu Mita (7):
bitops: rename for_each_set_bit_cont in favor of anologous to list.h
function
bitops: remove for_each_set_bit_cont
bitops: introduce list_for_each_clear_bit
mtd: use for_each_clear_bit
s390/char: use for_each_clear_bit
uwb: use for_each_clear_bit
x86: use for_each_clear_bit_from

 arch/x86/kernel/cpu/perf_event.c       |    4 ++--
 arch/x86/kernel/irqinit.c              |    6 +++---
 drivers/mtd/chips/cfi_cmdset_0001.c    |    6 ++----
 drivers/s390/char/sclp_cmd.c           |    5 ++---
 drivers/uwb/allocator.c                |    6 ++----
 include/linux/bitops.h                 |   13 ++++++++++++-
 tools/perf/util/include/linux/bitops.h |    2 +-
 7 files changed, 24 insertions(+), 18 deletions(-)
Cc Robert Richter <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Heiko Carstens <[email protected]>
Signature · 1 line
1.7.4.4