Skip to contentSkip to conversation

lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc

PATCH Superseded Herve Codina 3 participants 6 messages Mar 12, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc

The make htmldoc command failed with the following error
... include/linux/bitmap.h:524: ERROR: Unexpected indentation.
... include/linux/bitmap.h:524: CRITICAL: Unexpected section title or transition.

Move the visual representation to a literal block.

---

This patch fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers") available in net-next and linux-next

 include/linux/bitmap.h | 44 ++++++++++++++++++++++--------------------
 1 file changed, 23 insertions(+), 21 deletions(-)
include/linux/bitmap.h +23 -21
index 049ba20911c5..ac87c8292f08 100644
@@ -507,17 +507,18 @@ static inline void bitmap_replace(unsigned long *dst,
  *
  * (Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)
  *
- * A more 'visual' description of the operation:
- * src:  0000000001011010
- *                 ||||||
- *          +------+|||||
- *          |  +----+||||
- *          |  |+----+|||
- *          |  ||   +-+||
- *          |  ||   |  ||
- * mask: ...v..vv...v..vv
- *       ...0..11...0..10
- * dst:  0000001100000010
+ * A more 'visual' description of the operation::
+ *
+ *	src:  0000000001011010
+ *	                ||||||
+ *	         +------+|||||
+ *	         |  +----+||||
+ *	         |  |+----+|||
+ *	         |  ||   +-+||
+ *	         |  ||   |  ||
+ *	mask: ...v..vv...v..vv
+ *	      ...0..11...0..10
+ *	dst:  0000001100000010
  *
  * A relationship exists between bitmap_scatter() and bitmap_gather().
  * bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.
@@ -553,16 +554,17 @@ static inline void bitmap_scatter(unsigned long *dst, const unsigned long *src,
  *
  * (Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)
  *
- * A more 'visual' description of the operation:
- * mask: ...v..vv...v..vv
- * src:  0000001100000010
- *          ^  ^^   ^   0
- *          |  ||   |  10
- *          |  ||   > 010
- *          |  |+--> 1010
- *          |  +--> 11010
- *          +----> 011010
- * dst:  0000000000011010
+ * A more 'visual' description of the operation::
+ *
+ *	mask: ...v..vv...v..vv
+ *	src:  0000001100000010
+ *	         ^  ^^   ^   0
+ *	         |  ||   |  10
+ *	         |  ||   > 010
+ *	         |  |+--> 1010
+ *	         |  +--> 11010
+ *	         +----> 011010
+ *	dst:  0000000000011010
  *
  * A relationship exists between bitmap_gather() and bitmap_scatter(). See
  * bitmap_scatter() for the bitmap scatter detailed operations.
Signature · 1 line
2.44.0
#1 lore raw
Quoted 5 lines · Herve Codina

The make htmldoc command failed with the following error
... include/linux/bitmap.h:524: ERROR: Unexpected indentation.
... include/linux/bitmap.h:524: CRITICAL: Unexpected section title or transition.

Move the visual representation to a literal block.

...

Quoted 2 lines

This patch fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers") available in net-next and linux-next

Not sure about rules of net-next, but I would add Fixes FWIW:

Fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 6 lines · Andy Shevchenko
Quoted 5 lines · Herve Codina

The make htmldoc command failed with the following error
... include/linux/bitmap.h:524: ERROR: Unexpected indentation.
... include/linux/bitmap.h:524: CRITICAL: Unexpected section title or transition.

Move the visual representation to a literal block.

...

Quoted 6 lines
Quoted 2 lines

This patch fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers") available in net-next and linux-next

Not sure about rules of net-next, but I would add Fixes FWIW:

Fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")

And probably Reported-by...

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw

Hi Andy,

Quoted 8 lines · On Tue, 12 Mar 2024 17:43:00 +0200 Andy Shevchenko…
Quoted 6 lines · Andy Shevchenko
Quoted 5 lines · Herve Codina

The make htmldoc command failed with the following error
... include/linux/bitmap.h:524: ERROR: Unexpected indentation.
... include/linux/bitmap.h:524: CRITICAL: Unexpected section title or transition.

Move the visual representation to a literal block.

Quoted 8 lines

...

Quoted 6 lines
Quoted 2 lines

This patch fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers") available in net-next and linux-next

Not sure about rules of net-next, but I would add Fixes FWIW:

Fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")

I think I cannot add the Fixes tag as the de5f84338970 commit is not yet merged in Torvald's tree and I am not sure that the commit hash will not change during the merge process.

Quoted 3 lines

And probably Reported-by...

Regards,
Hervé

#4 lore raw
Quoted 18 lines · Herve Codina

Hi Andy,

Quoted 13 lines · On Tue, 12 Mar 2024 17:43:00 +0200 Andy Shevchenko…
Quoted 6 lines · Andy Shevchenko
Quoted 5 lines · Herve Codina

The make htmldoc command failed with the following error
... include/linux/bitmap.h:524: ERROR: Unexpected indentation.
... include/linux/bitmap.h:524: CRITICAL: Unexpected section title or transition.

Move the visual representation to a literal block.

...

Quoted 3 lines
Quoted 2 lines

This patch fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers") available in net-next and linux-next

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

Not sure about rules of net-next, but I would add Fixes FWIW:

Fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")

I think I cannot add the Fixes tag as the de5f84338970 commit is not yet merged in Torvald's tree and I am not sure that the commit hash will not change during the merge process.

That is not a reason for not providing a Fixes tag, it does not have to be in Linus' tree.

As a matter of fact, let us consider someone doing a back port of your patches into their custom local tree, they would like to have that information that this patch fixes a problem introduced by an earlier commit so they can take the entire set of commits as a whole.

Signature · 1 line
Florian
#5 lore raw
In reply to Herve Codina
Quoted 4 lines · Herve Codina
Quoted 2 lines · On Tue, 12 Mar 2024 17:43:00 +0200 Andy Shevchenko…
Quoted 1 line · Andy Shevchenko

On Tue, Mar 12, 2024 at 09:54:03AM +0100, Herve Codina wrote:

...

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

Not sure about rules of net-next, but I would add Fixes FWIW:

Fixes de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")

I think I cannot add the Fixes tag as the de5f84338970 commit is not yet merged in Torvald's tree and I am not sure that the commit hash will not change during the merge process.

It may change if and only if there will be rebase done. For the merge the SHA will be kept the same.

Quoted 1 line
Quoted 1 line

And probably Reported-by...

Signature · 2 lines
With Best Regards,
Andy Shevchenko