Thread (32 messages) flat view 32 messages, 4 authors, 2024-02-22

Re: [PATCH v3 RESEND 4/6] bitmap: Introduce bitmap_off()

From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Date: 2024-02-12 09:45:52
Also in: lkml, netdev

On 12/02/2024 08.56, Herve Codina wrote:
The bitmap_onto() function translates one bitmap relative to another but
no function are present to perform the reverse translation.

Introduce bitmap_off() to fill this hole.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
 include/linux/bitmap.h |  3 +++
 lib/bitmap.c           | 42 ++++++++++++++++++++++++++++++++++++++++++
This patch, or the next in the series, should include a diffstat
mentioning lib/test_bitmap.c. And please make sure that the tests
exercise both expected use as well as corner cases, so that the actual
expected behavior is documented in code and not just in prose (which may
be ambiguous), and so that behavior-changing refactorings will not go
unnoticed.

Rasmus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help