* [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
@ 2024-03-14 12:00 Herve Codina
2024-03-14 13:14 ` Andy Shevchenko
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Herve Codina @ 2024-03-14 12:00 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski, Paolo Abeni, Herve Codina,
Yury Norov, Andy Shevchenko, Rasmus Villemoes, Stephen Rothwell
Cc: linux-kernel, netdev, Christophe Leroy, Thomas Petazzoni
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.
Fixes: de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/linux-kernel/20240312153059.3ffde1b7@canb.auug.org.au/
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
Changes v1 -> v2
Add Fixes, Reported-by and Closes tags
include/linux/bitmap.h | 44 ++++++++++++++++++++++--------------------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index fb3a9c93ac86..aa4096126553 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -522,17 +522,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.
@@ -568,16 +569,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.
--
2.44.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
2024-03-14 12:00 [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc Herve Codina
@ 2024-03-14 13:14 ` Andy Shevchenko
2024-03-15 7:43 ` Bagas Sanjaya
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-03-14 13:14 UTC (permalink / raw)
To: Herve Codina
Cc: David S. Miller, Jakub Kicinski, Paolo Abeni, Yury Norov,
Rasmus Villemoes, Stephen Rothwell, linux-kernel, netdev,
Christophe Leroy, Thomas Petazzoni
On Thu, Mar 14, 2024 at 01:00:06PM +0100, Herve Codina wrote:
> 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.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
2024-03-14 12:00 [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc Herve Codina
2024-03-14 13:14 ` Andy Shevchenko
@ 2024-03-15 7:43 ` Bagas Sanjaya
2024-03-20 2:33 ` Jakub Kicinski
2024-03-21 4:00 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 7+ messages in thread
From: Bagas Sanjaya @ 2024-03-15 7:43 UTC (permalink / raw)
To: Herve Codina, David S. Miller, Jakub Kicinski, Paolo Abeni,
Yury Norov, Andy Shevchenko, Rasmus Villemoes, Stephen Rothwell
Cc: Linux Kernel Mailing List, Linux Networking, Christophe Leroy,
Thomas Petazzoni
[-- Attachment #1: Type: text/plain, Size: 2406 bytes --]
On Thu, Mar 14, 2024 at 01:00:06PM +0100, Herve Codina wrote:
> diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
> index fb3a9c93ac86..aa4096126553 100644
> --- a/include/linux/bitmap.h
> +++ b/include/linux/bitmap.h
> @@ -522,17 +522,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.
> @@ -568,16 +569,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.
LGTM, thanks!
Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
2024-03-14 12:00 [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc Herve Codina
2024-03-14 13:14 ` Andy Shevchenko
2024-03-15 7:43 ` Bagas Sanjaya
@ 2024-03-20 2:33 ` Jakub Kicinski
2024-03-20 18:34 ` Yury Norov
2024-03-21 4:00 ` patchwork-bot+netdevbpf
3 siblings, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2024-03-20 2:33 UTC (permalink / raw)
To: Herve Codina
Cc: David S. Miller, Paolo Abeni, Yury Norov, Andy Shevchenko,
Rasmus Villemoes, Stephen Rothwell, linux-kernel, netdev,
Christophe Leroy, Thomas Petazzoni
On Thu, 14 Mar 2024 13:00:06 +0100 Herve Codina wrote:
> 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.
>
> Fixes: de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Closes: https://lore.kernel.org/linux-kernel/20240312153059.3ffde1b7@canb.auug.org.au/
> Signed-off-by: Herve Codina <herve.codina@bootlin.com>
We took the offending commit via netdev, so I feel responsible. Please
LMK if anyone else is planning to apply this fix, otherwise we'll take
it and ship it to Linus on Thursday (19th).
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
2024-03-20 2:33 ` Jakub Kicinski
@ 2024-03-20 18:34 ` Yury Norov
2024-03-21 3:19 ` Jakub Kicinski
0 siblings, 1 reply; 7+ messages in thread
From: Yury Norov @ 2024-03-20 18:34 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Herve Codina, David S. Miller, Paolo Abeni, Andy Shevchenko,
Rasmus Villemoes, Stephen Rothwell, linux-kernel, netdev,
Christophe Leroy, Thomas Petazzoni
On Tue, Mar 19, 2024 at 07:33:38PM -0700, Jakub Kicinski wrote:
> On Thu, 14 Mar 2024 13:00:06 +0100 Herve Codina wrote:
> > 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.
> >
> > Fixes: de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")
> > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > Closes: https://lore.kernel.org/linux-kernel/20240312153059.3ffde1b7@canb.auug.org.au/
> > Signed-off-by: Herve Codina <herve.codina@bootlin.com>
>
> We took the offending commit via netdev, so I feel responsible. Please
> LMK if anyone else is planning to apply this fix, otherwise we'll take
> it and ship it to Linus on Thursday (19th).
Please go ahead and add my
Acked-by: Yury Norov <yury.norov@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
2024-03-20 18:34 ` Yury Norov
@ 2024-03-21 3:19 ` Jakub Kicinski
0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2024-03-21 3:19 UTC (permalink / raw)
To: Yury Norov
Cc: Herve Codina, David S. Miller, Paolo Abeni, Andy Shevchenko,
Rasmus Villemoes, Stephen Rothwell, linux-kernel, netdev,
Christophe Leroy, Thomas Petazzoni
On Wed, 20 Mar 2024 11:34:40 -0700 Yury Norov wrote:
> > We took the offending commit via netdev, so I feel responsible. Please
> > LMK if anyone else is planning to apply this fix, otherwise we'll take
> > it and ship it to Linus on Thursday (19th).
>
> Please go ahead and add my
>
> Acked-by: Yury Norov <yury.norov@gmail.com>
Done, thank you!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
2024-03-14 12:00 [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc Herve Codina
` (2 preceding siblings ...)
2024-03-20 2:33 ` Jakub Kicinski
@ 2024-03-21 4:00 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-21 4:00 UTC (permalink / raw)
To: Herve Codina
Cc: davem, kuba, pabeni, yury.norov, andriy.shevchenko, linux, sfr,
linux-kernel, netdev, christophe.leroy, thomas.petazzoni
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 14 Mar 2024 13:00:06 +0100 you wrote:
> 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.
>
> Fixes: de5f84338970 ("lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Closes: https://lore.kernel.org/linux-kernel/20240312153059.3ffde1b7@canb.auug.org.au/
> Signed-off-by: Herve Codina <herve.codina@bootlin.com>
>
> [...]
Here is the summary with links:
- [v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc
https://git.kernel.org/netdev/net/c/2d9d9f256c8c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-03-21 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-14 12:00 [PATCH v2] lib/bitmap: Fix bitmap_scatter() and bitmap_gather() kernel doc Herve Codina
2024-03-14 13:14 ` Andy Shevchenko
2024-03-15 7:43 ` Bagas Sanjaya
2024-03-20 2:33 ` Jakub Kicinski
2024-03-20 18:34 ` Yury Norov
2024-03-21 3:19 ` Jakub Kicinski
2024-03-21 4:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).