Skip to content

bitmap: align bitmap_find_next_zero_area_off() output with the rest of the API

Yury Norov linux-arm-kernel linux-crypto linux-media linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: dma-mapping: Treat bitmap size as allocation failurearch/arm/mm/dma-mapping.c+2 -21 reply
2/5powerpc/msi: Treat bitmap size as allocation failurearch/powerpc/sysdev/msi_bitmap.c+1 -11 reply
3/5crypto: ccp: Treat bitmap size as allocation failuredrivers/crypto/ccp/ccp-dev-v3.c drivers/crypto/ccp/ccp-dev-v5.c+4 -40 replies
4/5media: s5p-mfc: Treat bitmap size as allocation failuredrivers/media/platform/samsung/s5p-mfc/s5p_mfc_opr.c+1 -11 reply
5/5bitmap: Return size when no zero area is foundinclude/linux/bitmap.h lib/bitmap.c+7 -60 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchMarek SzyprowskiMadhavan Srinivasan
1/5A-b
2/5A-b
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] bitmap: align bitmap_find_next_zero_area_off() output with the rest of the API

Bitmap search functions return a value greater than or equal to nbits when no suitable bits are found. bitmap_find_next_zero_area_off() is an
exception: it returns a value greater than nbits.

Align the function with the rest of the API and adjust the affected callers accordingly.

Patches 1-4 are sent only to their respective maintainers and mailing lists. Patch 5 and the cover letter are sent to all recipients.

On top of -next. I plan to carry the series with bitmap-for-next.

Yury Norov (5):
ARM: dma-mapping: Treat bitmap size as allocation failure powerpc/msi: Treat bitmap size as allocation failure
crypto: ccp: Treat bitmap size as allocation failure
media: s5p-mfc: Treat bitmap size as allocation failure
bitmap: Return size when no zero area is found

 arch/arm/mm/dma-mapping.c                            |  4 ++--
 arch/powerpc/sysdev/msi_bitmap.c                     |  2 +-
 drivers/crypto/ccp/ccp-dev-v3.c                      |  2 +-
 drivers/crypto/ccp/ccp-dev-v5.c                      |  6 +++---
 drivers/media/platform/samsung/s5p-mfc/s5p_mfc_opr.c |  2 +-
 include/linux/bitmap.h                               |  3 +++
 lib/bitmap.c                                         | 10 ++++------
 7 files changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.53.0