* [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
@ 2026-09-16 21:10 Omokefe Emmanuel Onanaroghene
2026-09-16 21:22 ` Randy Dunlap
0 siblings, 1 reply; 7+ messages in thread
From: Omokefe Emmanuel Onanaroghene @ 2026-09-16 21:10 UTC (permalink / raw)
To: linux-doc, linux-kernel, netdev, intel-wired-lan
Cc: corbet, skhan, rdunlap, mchehab, aleksander.lobakin,
aleksandr.loktionov, tudor.ambarus, emmaonana18, bvanassche
kernel-doc reports struct_group_tagged() members as excess because
the macro transformation rewrites it to an anonymous struct and drops their
member names.
Keep the tag and member name when transforming struct_group_tagged(). The
nested members are then recorded as names such as fast.order; accept the
existing unqualified @order documentation tag during validation.
Add a regression test based on struct page_pool_params.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/all/0cf8ea5f-418f-45f0-907c-3d1ed4f03e9f@infradead.org/
Fixes: 2f07ddbd5793 ("docs: xforms_lists: better evaluate struct_group macros")
Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
---
tools/lib/python/kdoc/kdoc_parser.py | 4 ++-
tools/lib/python/kdoc/xforms_lists.py | 2 +-
tools/unittests/test_kdoc_parser.py | 37 +++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
index d9ad1ddc87dd..ced09504f3d7 100644
--- a/tools/lib/python/kdoc/kdoc_parser.py
+++ b/tools/lib/python/kdoc/kdoc_parser.py
@@ -635,7 +635,9 @@ class KernelDoc:
continue
if param_name.startswith("{unnamed_"):
continue
- if param_name in self.entry.parameterlist:
+ if param_name in self.entry.parameterlist or \
+ any(actual.endswith('.' + param_name)
+ for actual in self.entry.parameterlist):
continue
hint = self.get_suggestions_hint(param_name, self.entry.parameterlist)
diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py
index e3dda2fe8a53..9e8b3a6b1da1 100644
--- a/tools/lib/python/kdoc/xforms_lists.py
+++ b/tools/lib/python/kdoc/xforms_lists.py
@@ -60,7 +60,7 @@ class CTransforms:
#
(CMatch("struct_group"), r"struct { \2+ };"),
(CMatch("struct_group_attr"), r"struct { \3+ };"),
- (CMatch("struct_group_tagged"), r"struct { \3+ };"),
+ (CMatch("struct_group_tagged"), r"struct \1 { \3+ } \2;"),
(CMatch("__struct_group"), r"struct { \4+ };"),
]
diff --git a/tools/unittests/test_kdoc_parser.py b/tools/unittests/test_kdoc_parser.py
index c4a76ed13dbc..1a8287e99f2e 100755
--- a/tools/unittests/test_kdoc_parser.py
+++ b/tools/unittests/test_kdoc_parser.py
@@ -418,6 +418,43 @@ class TestSelfValidate(GenerateKdocItem):
"""
self.run_test(self.SOURCE, [self.DEFAULT.copy()], self.EXPORTS)
+
+class TestStructGroupTagged(GenerateKdocItem):
+ def test_nested_struct_group_tagged_members(self):
+ source = """
+ /**
+ * struct page_pool_params - page pool parameters
+ * @fast: Fast path parameters.
+ * @order: Order of pages.
+ * @pool_size: Number of pages.
+ * @slow: Slow path parameters.
+ * @netdev: Net device pointer.
+ * @queue_idx: Queue index.
+ * @flags: Flags.
+ */
+ struct page_pool_params {
+ struct_group_tagged(page_pool_params_fast, fast,
+ unsigned int order;
+ unsigned int pool_size;
+ );
+ struct_group_tagged(page_pool_params_slow, slow,
+ struct net_device *netdev;
+ unsigned int queue_idx;
+ unsigned int flags;
+ );
+ };
+ """
+
+ kernel_doc = KernelDoc(self.config, "test.c", self.xforms)
+ patcher = patch('builtins.open', new_callable=mock_open,
+ read_data=dedent(source))
+ with patcher:
+ _, entries = kernel_doc.parse_kdoc()
+
+ self.assertEqual(len(entries), 1)
+ self.assertEqual(entries[0].warnings, [])
+
+
#
# Class and logic to create dynamic tests from YAML
#
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
2026-09-16 21:10 Omokefe Emmanuel Onanaroghene
@ 2026-09-16 21:22 ` Randy Dunlap
2026-09-16 21:56 ` Omokefe Emmanuel Onanaroghene
0 siblings, 1 reply; 7+ messages in thread
From: Randy Dunlap @ 2026-09-16 21:22 UTC (permalink / raw)
To: Omokefe Emmanuel Onanaroghene, linux-doc, linux-kernel, netdev,
intel-wired-lan
Cc: corbet, skhan, mchehab, aleksander.lobakin, aleksandr.loktionov,
tudor.ambarus, bvanassche
Hi,
On 9/16/26 2:10 PM, Omokefe Emmanuel Onanaroghene wrote:
> kernel-doc reports struct_group_tagged() members as excess because
> the macro transformation rewrites it to an anonymous struct and drops their
> member names.
>
> Keep the tag and member name when transforming struct_group_tagged(). The
> nested members are then recorded as names such as fast.order; accept the
> existing unqualified @order documentation tag during validation.
>
> Add a regression test based on struct page_pool_params.
>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Link: https://lore.kernel.org/all/0cf8ea5f-418f-45f0-907c-3d1ed4f03e9f@infradead.org/
> Fixes: 2f07ddbd5793 ("docs: xforms_lists: better evaluate struct_group macros")
> Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
> ---
> tools/lib/python/kdoc/kdoc_parser.py | 4 ++-
> tools/lib/python/kdoc/xforms_lists.py | 2 +-
> tools/unittests/test_kdoc_parser.py | 37 +++++++++++++++++++++++++++
> 3 files changed, 41 insertions(+), 2 deletions(-)
>
This is the same as your v1 patch. Did you send the wrong patch contents
by mistake?
Also, please tell what changed between versions between the "---" line above
here and the diff below here.
> diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
> index d9ad1ddc87dd..ced09504f3d7 100644
> --- a/tools/lib/python/kdoc/kdoc_parser.py
> +++ b/tools/lib/python/kdoc/kdoc_parser.py
> @@ -635,7 +635,9 @@ class KernelDoc:
> continue
> if param_name.startswith("{unnamed_"):
> continue
> - if param_name in self.entry.parameterlist:
> + if param_name in self.entry.parameterlist or \
> + any(actual.endswith('.' + param_name)
> + for actual in self.entry.parameterlist):
> continue
>
> hint = self.get_suggestions_hint(param_name, self.entry.parameterlist)
> diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py
> index e3dda2fe8a53..9e8b3a6b1da1 100644
> --- a/tools/lib/python/kdoc/xforms_lists.py
> +++ b/tools/lib/python/kdoc/xforms_lists.py
> @@ -60,7 +60,7 @@ class CTransforms:
> #
> (CMatch("struct_group"), r"struct { \2+ };"),
> (CMatch("struct_group_attr"), r"struct { \3+ };"),
> - (CMatch("struct_group_tagged"), r"struct { \3+ };"),
> + (CMatch("struct_group_tagged"), r"struct \1 { \3+ } \2;"),
> (CMatch("__struct_group"), r"struct { \4+ };"),
> ]
>
> diff --git a/tools/unittests/test_kdoc_parser.py b/tools/unittests/test_kdoc_parser.py
> index c4a76ed13dbc..1a8287e99f2e 100755
> --- a/tools/unittests/test_kdoc_parser.py
> +++ b/tools/unittests/test_kdoc_parser.py
> @@ -418,6 +418,43 @@ class TestSelfValidate(GenerateKdocItem):
> """
> self.run_test(self.SOURCE, [self.DEFAULT.copy()], self.EXPORTS)
>
> +
> +class TestStructGroupTagged(GenerateKdocItem):
> + def test_nested_struct_group_tagged_members(self):
> + source = """
> + /**
> + * struct page_pool_params - page pool parameters
> + * @fast: Fast path parameters.
> + * @order: Order of pages.
> + * @pool_size: Number of pages.
> + * @slow: Slow path parameters.
> + * @netdev: Net device pointer.
> + * @queue_idx: Queue index.
> + * @flags: Flags.
> + */
> + struct page_pool_params {
> + struct_group_tagged(page_pool_params_fast, fast,
> + unsigned int order;
> + unsigned int pool_size;
> + );
> + struct_group_tagged(page_pool_params_slow, slow,
> + struct net_device *netdev;
> + unsigned int queue_idx;
> + unsigned int flags;
> + );
> + };
> + """
> +
> + kernel_doc = KernelDoc(self.config, "test.c", self.xforms)
> + patcher = patch('builtins.open', new_callable=mock_open,
> + read_data=dedent(source))
> + with patcher:
> + _, entries = kernel_doc.parse_kdoc()
> +
> + self.assertEqual(len(entries), 1)
> + self.assertEqual(entries[0].warnings, [])
> +
> +
> #
> # Class and logic to create dynamic tests from YAML
> #
thanks.
--
~Randy
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
@ 2026-09-16 21:43 Omokefe Emmanuel Onanaroghene
2026-09-16 21:56 ` Randy Dunlap
2026-11-21 15:03 ` TAKANO Mitsuhiro
0 siblings, 2 replies; 7+ messages in thread
From: Omokefe Emmanuel Onanaroghene @ 2026-09-16 21:43 UTC (permalink / raw)
To: linux-doc, linux-kernel, netdev, intel-wired-lan
Cc: corbet, skhan, rdunlap, mchehab, aleksander.lobakin,
aleksandr.loktionov, tudor.ambarus, emmaonana18, bvanassche
kernel-doc reports struct_group_tagged() members as excess because
the macro transformation rewrites it to an anonymous struct and drops their
member names.
Keep the tag and member name when transforming struct_group_tagged(). The
nested members are then recorded as names such as fast.order; accept the
existing unqualified @order documentation tag during validation.
Add a regression test based on struct page_pool_params.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/all/0cf8ea5f-418f-45f0-907c-3d1ed4f03e9f@infradead.org/
Fixes: 2f07ddbd5793 ("docs: xforms_lists: better evaluate struct_group macros")
Assisted-by: LLM
Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
---
Changes in v2:
- Add Assisted-by: LLM as requested by Jonathan Corbet.
tools/lib/python/kdoc/kdoc_parser.py | 4 ++-
tools/lib/python/kdoc/xforms_lists.py | 2 +-
tools/unittests/test_kdoc_parser.py | 37 +++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
index d9ad1ddc87dd..ced09504f3d7 100644
--- a/tools/lib/python/kdoc/kdoc_parser.py
+++ b/tools/lib/python/kdoc/kdoc_parser.py
@@ -635,7 +635,9 @@ class KernelDoc:
continue
if param_name.startswith("{unnamed_"):
continue
- if param_name in self.entry.parameterlist:
+ if param_name in self.entry.parameterlist or \
+ any(actual.endswith('.' + param_name)
+ for actual in self.entry.parameterlist):
continue
hint = self.get_suggestions_hint(param_name, self.entry.parameterlist)
diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py
index e3dda2fe8a53..9e8b3a6b1da1 100644
--- a/tools/lib/python/kdoc/xforms_lists.py
+++ b/tools/lib/python/kdoc/xforms_lists.py
@@ -60,7 +60,7 @@ class CTransforms:
#
(CMatch("struct_group"), r"struct { \2+ };"),
(CMatch("struct_group_attr"), r"struct { \3+ };"),
- (CMatch("struct_group_tagged"), r"struct { \3+ };"),
+ (CMatch("struct_group_tagged"), r"struct \1 { \3+ } \2;"),
(CMatch("__struct_group"), r"struct { \4+ };"),
]
diff --git a/tools/unittests/test_kdoc_parser.py b/tools/unittests/test_kdoc_parser.py
index c4a76ed13dbc..1a8287e99f2e 100755
--- a/tools/unittests/test_kdoc_parser.py
+++ b/tools/unittests/test_kdoc_parser.py
@@ -418,6 +418,43 @@ class TestSelfValidate(GenerateKdocItem):
"""
self.run_test(self.SOURCE, [self.DEFAULT.copy()], self.EXPORTS)
+
+class TestStructGroupTagged(GenerateKdocItem):
+ def test_nested_struct_group_tagged_members(self):
+ source = """
+ /**
+ * struct page_pool_params - page pool parameters
+ * @fast: Fast path parameters.
+ * @order: Order of pages.
+ * @pool_size: Number of pages.
+ * @slow: Slow path parameters.
+ * @netdev: Net device pointer.
+ * @queue_idx: Queue index.
+ * @flags: Flags.
+ */
+ struct page_pool_params {
+ struct_group_tagged(page_pool_params_fast, fast,
+ unsigned int order;
+ unsigned int pool_size;
+ );
+ struct_group_tagged(page_pool_params_slow, slow,
+ struct net_device *netdev;
+ unsigned int queue_idx;
+ unsigned int flags;
+ );
+ };
+ """
+
+ kernel_doc = KernelDoc(self.config, "test.c", self.xforms)
+ patcher = patch('builtins.open', new_callable=mock_open,
+ read_data=dedent(source))
+ with patcher:
+ _, entries = kernel_doc.parse_kdoc()
+
+ self.assertEqual(len(entries), 1)
+ self.assertEqual(entries[0].warnings, [])
+
+
#
# Class and logic to create dynamic tests from YAML
#
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
2026-09-16 21:43 [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression Omokefe Emmanuel Onanaroghene
@ 2026-09-16 21:56 ` Randy Dunlap
2026-11-21 15:03 ` TAKANO Mitsuhiro
1 sibling, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2026-09-16 21:56 UTC (permalink / raw)
To: Omokefe Emmanuel Onanaroghene, linux-doc, linux-kernel, netdev,
intel-wired-lan
Cc: corbet, skhan, mchehab, aleksander.lobakin, aleksandr.loktionov,
tudor.ambarus, bvanassche
On 9/16/26 2:43 PM, Omokefe Emmanuel Onanaroghene wrote:
> kernel-doc reports struct_group_tagged() members as excess because
> the macro transformation rewrites it to an anonymous struct and drops their
> member names.
>
> Keep the tag and member name when transforming struct_group_tagged(). The
> nested members are then recorded as names such as fast.order; accept the
> existing unqualified @order documentation tag during validation.
>
> Add a regression test based on struct page_pool_params.
>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Link: https://lore.kernel.org/all/0cf8ea5f-418f-45f0-907c-3d1ed4f03e9f@infradead.org/
> Fixes: 2f07ddbd5793 ("docs: xforms_lists: better evaluate struct_group macros")
> Assisted-by: LLM
> Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
same as for v1:
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> Changes in v2:
> - Add Assisted-by: LLM as requested by Jonathan Corbet.
>
> tools/lib/python/kdoc/kdoc_parser.py | 4 ++-
> tools/lib/python/kdoc/xforms_lists.py | 2 +-
> tools/unittests/test_kdoc_parser.py | 37 +++++++++++++++++++++++++++
> 3 files changed, 41 insertions(+), 2 deletions(-)
>
> diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
> index d9ad1ddc87dd..ced09504f3d7 100644
> --- a/tools/lib/python/kdoc/kdoc_parser.py
> +++ b/tools/lib/python/kdoc/kdoc_parser.py
> @@ -635,7 +635,9 @@ class KernelDoc:
> continue
> if param_name.startswith("{unnamed_"):
> continue
> - if param_name in self.entry.parameterlist:
> + if param_name in self.entry.parameterlist or \
> + any(actual.endswith('.' + param_name)
> + for actual in self.entry.parameterlist):
> continue
>
> hint = self.get_suggestions_hint(param_name, self.entry.parameterlist)
> diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py
> index e3dda2fe8a53..9e8b3a6b1da1 100644
> --- a/tools/lib/python/kdoc/xforms_lists.py
> +++ b/tools/lib/python/kdoc/xforms_lists.py
> @@ -60,7 +60,7 @@ class CTransforms:
> #
> (CMatch("struct_group"), r"struct { \2+ };"),
> (CMatch("struct_group_attr"), r"struct { \3+ };"),
> - (CMatch("struct_group_tagged"), r"struct { \3+ };"),
> + (CMatch("struct_group_tagged"), r"struct \1 { \3+ } \2;"),
> (CMatch("__struct_group"), r"struct { \4+ };"),
> ]
>
> diff --git a/tools/unittests/test_kdoc_parser.py b/tools/unittests/test_kdoc_parser.py
> index c4a76ed13dbc..1a8287e99f2e 100755
> --- a/tools/unittests/test_kdoc_parser.py
> +++ b/tools/unittests/test_kdoc_parser.py
> @@ -418,6 +418,43 @@ class TestSelfValidate(GenerateKdocItem):
> """
> self.run_test(self.SOURCE, [self.DEFAULT.copy()], self.EXPORTS)
>
> +
> +class TestStructGroupTagged(GenerateKdocItem):
> + def test_nested_struct_group_tagged_members(self):
> + source = """
> + /**
> + * struct page_pool_params - page pool parameters
> + * @fast: Fast path parameters.
> + * @order: Order of pages.
> + * @pool_size: Number of pages.
> + * @slow: Slow path parameters.
> + * @netdev: Net device pointer.
> + * @queue_idx: Queue index.
> + * @flags: Flags.
> + */
> + struct page_pool_params {
> + struct_group_tagged(page_pool_params_fast, fast,
> + unsigned int order;
> + unsigned int pool_size;
> + );
> + struct_group_tagged(page_pool_params_slow, slow,
> + struct net_device *netdev;
> + unsigned int queue_idx;
> + unsigned int flags;
> + );
> + };
> + """
> +
> + kernel_doc = KernelDoc(self.config, "test.c", self.xforms)
> + patcher = patch('builtins.open', new_callable=mock_open,
> + read_data=dedent(source))
> + with patcher:
> + _, entries = kernel_doc.parse_kdoc()
> +
> + self.assertEqual(len(entries), 1)
> + self.assertEqual(entries[0].warnings, [])
> +
> +
> #
> # Class and logic to create dynamic tests from YAML
> #
--
~Randy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
2026-09-16 21:22 ` Randy Dunlap
@ 2026-09-16 21:56 ` Omokefe Emmanuel Onanaroghene
0 siblings, 0 replies; 7+ messages in thread
From: Omokefe Emmanuel Onanaroghene @ 2026-09-16 21:56 UTC (permalink / raw)
To: rdunlap
Cc: linux-doc, linux-kernel, netdev, intel-wired-lan, corbet, skhan,
mchehab, aleksander.lobakin, aleksandr.loktionov, tudor.ambarus,
bvanassche, emmaonana18
Hi Randy,
Yes, that was a mistake.
I have now sent a corrected v2.
Thanks,
Onana
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
2026-09-16 21:43 [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression Omokefe Emmanuel Onanaroghene
2026-09-16 21:56 ` Randy Dunlap
@ 2026-11-21 15:03 ` TAKANO Mitsuhiro
2026-11-29 12:03 ` Omokefe Emmanuel Onanaroghene
1 sibling, 1 reply; 7+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-21 15:03 UTC (permalink / raw)
To: Omokefe Emmanuel Onanaroghene
Cc: Jonathan Corbet, Shuah Khan, Randy Dunlap, Mauro Carvalho Chehab,
Alexander Lobakin, Aleksandr Loktionov, Tudor Ambarus,
Bart Van Assche, linux-doc, linux-kernel, netdev, intel-wired-lan
Hi Onana,
Thanks for the patch, and sorry it took me this long to test it. Randy
tested v1 and carried his Tested-by and Acked-by to v2 in September; the
run below is independent, on mainline d0f871bfb831 (2026-11-20).
Short version: with a fuzz-2 apply the warnings in the four headers below
go away and the test suite has no new failures. The patch needs a rebase
before it can go in. Two things below are worth a look -- the rendering
loss and the excess-warning scope -- but I do not think either has to hold
up that rebase; that is for you and the maintainers to decide.
git apply rejects the hunks in tools/lib/python/kdoc/xforms_lists.py and
tools/unittests/test_kdoc_parser.py, because of 2d72a4c09867 ("docs:
kdoc: parse context_lock_struct() as struct declaration"), which landed
after v2. The kdoc_parser.py hunk still applies. With patch -p1 those two
go in at fuzz 2. Everything below is from that tree.
Could you rebase onto current mainline and post a v3? For v3 I am only
asking for the rebase; the rendering follow-up and the excess-warning
question below are for later.
kernel-doc -Wall, warning lines (the tool prints each of these twice, so
4 -> 0 is two warnings):
include/net/page_pool/types.h 4 -> 0
include/net/libeth/rx.h 2 -> 0
include/net/libeth/xsk.h 2 -> 0
drivers/net/ethernet/intel/ice/devlink/health.h 2 -> 0
Those four files are also where the descriptions disappear. The five
warnings above are about the group names themselves; with the
xforms_lists.py hunk alone kernel-doc instead flags the 24 field
descriptions as excess, and the endswith() hunk keeps them out of that
count.
Unit tests (cd tools && /usr/bin/python3 unittests/run.py): 122 -> 123
tests; with only the test hunk the new case is the only failure beyond the
four expected ones, and with the two code hunks as well there are no new
failures.
Those results -- kernel-doc -Wall on the four headers and the unit tests,
no make htmldocs -- are what the Tested-by below covers. If the v3 hunks
come out the same as in v2 -- same added and removed lines, only offsets
and context differing -- and no other commit has touched
tools/lib/python/kdoc/, tools/unittests/ or those four headers since
d0f871bfb831, feel free to add it; if in doubt, drop it and I will re-test
and reply with a new tag.
The rendering follow-up: with v2 the field descriptions inside these
groups stop being rendered. page_pool_params renders today as
{unnamed_struct} twice plus its eleven field descriptions; with v2 it
renders the group names fast and slow, and the eleven field descriptions
are gone from kernel-doc's output. Across the four headers that is 24
descriptions, and no other file's rendered output changes -- I checked
every file that uses struct_group_tagged. They come back if those comments are
rewritten as @fast.order:, @slow.netdev: and so on, which needs the
xforms_lists.py change in this patch. I will send that rewrite as a
second patch.
The excess-warning question: the endswith() check in kdoc_parser.py also
silences excess-member warnings where a comment uses the flat name for a
nested member instead of the dotted one, in files that use no struct_group
at all -- for example 12 warning lines to 0 in include/linux/msi.h, 24 to
0 in include/linux/mroute_base.h, 20 to 0 in include/net/macsec.h and 30
to 0 in drivers/gpu/drm/panthor/panthor_device.h. Each of those is printed
twice. msi.h has no other warnings, so it goes quiet entirely; the other
three keep their unrelated ones. In msi.h, mroute_base.h, macsec.h and
panthor_device.h the rendered text does not change at all; only the excess
warnings go away. If that is wider than you intend,
restricting the check to members of a struct_group_tagged() group should
keep those warnings; I have not tried that, and the parsed members do not
record where they came from today.
The testing above was run by an AI assistant (Hermes Agent) under my
direction, and this message was drafted with it; I checked every number,
edited the text, and the tag below is mine.
Tested-by: TAKANO Mitsuhiro <takano32@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression
2026-11-21 15:03 ` TAKANO Mitsuhiro
@ 2026-11-29 12:03 ` Omokefe Emmanuel Onanaroghene
0 siblings, 0 replies; 7+ messages in thread
From: Omokefe Emmanuel Onanaroghene @ 2026-11-29 12:03 UTC (permalink / raw)
To: takano32
Cc: linux-doc, linux-kernel, netdev, intel-wired-lan, corbet, skhan,
rdunlap, mchehab, aleksander.lobakin, aleksandr.loktionov,
tudor.ambarus, bvanassche
Hi Takano,
Thanks for the review.
I already sent v3
https://lore.kernel.org/all/20261129114700.12614-1-emmaonana18@gmail.com/
On rendering: My plan is a follow-up after v3 lands
that keeps the fix localized to
struct_group_tagged members.
This also fixes the warning scope
Thanks,
Omokefe
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-29 12:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 21:43 [PATCH v2] docs: kdoc: fix struct_group_tagged() parsing regression Omokefe Emmanuel Onanaroghene
2026-09-16 21:56 ` Randy Dunlap
2026-11-21 15:03 ` TAKANO Mitsuhiro
2026-11-29 12:03 ` Omokefe Emmanuel Onanaroghene
-- strict thread matches above, loose matches on Subject: below --
2026-09-16 21:10 Omokefe Emmanuel Onanaroghene
2026-09-16 21:22 ` Randy Dunlap
2026-09-16 21:56 ` Omokefe Emmanuel Onanaroghene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox