Skip to content

lib: unload lib/bitmap.c

Yury Norov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/bitmap: move bitmap allocators for device to linux/device.hinclude/linux/bitmap.h include/linux/device.h lib/bitmap.c+30 -413 replies
2/2lib/bitmap: split-out string-related operations to a separate filesMAINTAINERS include/linux/bitmap-str.h include/linux/bitmap.h +3 more+530 -5290 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/2] lib: unload lib/bitmap.c

The file is intended to hold functions to operate on bit arrays, but this days, more than 1/3 of bitmap.c is helpers for bitmap-to-string converters, plus some wrappers for device.h.

So move those out of lib/bitmap.c in sake of readability and maintainability.

Functionally, this series is a no-op.

Yury Norov (2):
lib/bitmap: move bitmap allocators for device to linux/device.h lib/bitmap: split-out string-related operations to a separate files

 MAINTAINERS                |   2 +
 include/linux/bitmap-str.h |  16 ++
 include/linux/bitmap.h     |  25 +-
 include/linux/device.h     |  30 ++
 lib/Makefile               |   2 +-
 lib/bitmap-str.c           | 510 ++++++++++++++++++++++++++++++++++
 lib/bitmap.c               | 545 -------------------------------------
 7 files changed, 560 insertions(+), 570 deletions(-)
 create mode 100644 include/linux/bitmap-str.h
 create mode 100644 lib/bitmap-str.c
Signature · 1 line
2.39.2