From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4C4C606A31C for ; Mon, 30 Nov 2026 11:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=IjzXgU7D; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mC9zLlpf Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id ADB02606C1; Mon, 30 Nov 2026 11:47:24 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id MI67YFOl89T4; Mon, 30 Nov 2026 11:47:23 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org CD66C606DB Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796039243; b=OcmVscOojfUGyAIKQLZ/ttex2wD2cdZauivvUul43qebPd7sOyzzESgwNsvgsX1erMx3 l3N29DluHG8M0YgXg/ob96MkSGPKI5Y+VsbKLe9EG6z1Rajs0hkBjXnULtME1UqZhlr2i sG0ec8BLTNMiZ+mgL+JEEOwdLIpldK/iovu7QsskSPEnuZb9lAfU+i/Fm6iyazTQ79DAN W7N/lnJWbTqmQIgAEvvLOEW4k3cku0FXuUKd4+QcA+pTXbz107esNd0AxU188bP2XDBb9 siDr30msunmrtDaoeFpYe6Zm3fnGzfNb9SPDA+QrbEpHs9WHypCLgVjcKJjWSCMrzpQ== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796039243; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:DKIM-Signature:Message-ID:From:Subject:To:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:Date:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:Errors-To; bh=OAXOrS+fam4Xqy8zmnhFYItl+TI4m7t6AXSx6gJwwLQ=; b=M7HNkxfEMqal5g1FGdQSRUxTpuu7E9dLsJxDLcuiQdknZILYWGc5wcAIZDkjYd+4DHRT oVkmA2z6bobwrBn9/lN8H00ugWocAUhJlNx15uS+9Xx8IJ11CCSlARwMWT4qFkBCGlnyn D+jfqMV41QhmAxjzt+6XsmREoBqugiWwArO4nwkpnQaSqCYJlINEWrvDJ0CYexmiJ26cq 7iJYuWwndGL+7fvUaOTBuwOTh3+MVAno7YoFoPKeZAA4g2wYbzg5zUCDAQBweBLJMcagG UchbFChucs1rJng1W3jcq77iK0J7vVmMNVQfckswC0t3RQab/JFtDvVchFtsCImp3ug== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796039243; bh=OAXOrS+fam4Xqy8zmnhFYItl+TI4m7t6AXSx6gJwwLQ=; h=From:Subject:To:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=IjzXgU7DpLjDHfNnv9znCbPMaD9pf536y1bLJo/uQhyg1bXhf0iEGt/byjqZMdcfN cLcvyTmCluK6jhvyRzd/BQrk880zCYfglA+LKQekKBkRYAIoB027f5FX1Gcylx9ISk F0sOggRbzoobeThwRdGnsCZE7Ud/H/uarxz6Nz5MWtZHKWNMYyuEYbtMNC+p64HyVV JiGWwXf67ymTlnrZAZWpCA0P+7nA15PeL+S5EQkLPhECiRWiJhdu4SIj8+Rgw5jUGN W5MWTf1n2hfdOL33iUwPIP02diOuPobvTylIkegZdXB/B1J7PMJt7C56R/cHBX0fiD zRZRU1t5gOoag== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id CD66C606DB; Mon, 30 Nov 2026 11:47:23 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id 6CC27373 for ; Mon, 30 Nov 2026 11:47:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5567F4008E for ; Mon, 30 Nov 2026 11:47:22 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ANNY1oDdN7gi for ; Mon, 30 Nov 2026 11:47:21 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org 61A0840064 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=172.234.252.31 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mC9zLlpf Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by smtp2.osuosl.org (Postfix) with ESMTPS id 61A0840064 for ; Mon, 30 Nov 2026 11:47:20 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 5C944434FB; Mon, 30 Nov 2026 11:47:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C85611F0089C; Mon, 30 Nov 2026 11:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796039239; bh=OAXOrS+fam4Xqy8zmnhFYItl+TI4m7t6AXSx6gJwwLQ=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=mC9zLlpfTDcGG1FX7URh4uSynj0J7f3zQjzgqyAoIghmksY0fXoctt5y7T/JGJJqy bWJUYhwK5W83m6NLC9z9VtqrLNgNGT+TZnVIR65BppqbfV2Hc/v9b8v96QkvqIt6AG bdO8U4HEesnnoTSzLhC3PuzdQkNKqtKSFLQXVhKIDBgA4u28ExbUyBwR/iQAiEGJ3h GUHGO6h07boPYW/pEkymvT/R0KPQD7CICkscyudge66Fk42igM8VWojyw5H+Eazn6p gghXdbDZ+2cLZPjKjp6EI7wOvszecMhuroaTTV8QnjhZneN7yQWiRWVyiELbYjtuei WAYK+8u3xP7fw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3] docs: kdoc: fix struct_group_tagged() parsing regression To: "Omokefe Emmanuel Onanaroghene" , intel-wired-lan@lists.osuosl.org In-Reply-To: <20261129114700.12614-1-emmaonana18@gmail.com> References: <20261129114700.12614-1-emmaonana18@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 11:47:19 +0000 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] docs: kdoc: struct_group_tagged() inner member docs dropped from output - [Medium] docs: kdoc: check_sections() suppresses prefix warnings on all nested structs -- commit 6115678cf3e6e19585bd8d59787433bb0d68c597 Author: Omokefe Emmanuel Onanaroghene docs: kdoc: fix struct_group_tagged() parsing regression This commit preserves the struct tag and member name when transforming struct_group_tagged() in kernel-doc and allows unqualified member tags in check_sections(). Link: https://lore.kernel.org/all/0cf8ea5f-418f-45f0-907c-3d1ed4f03e9f@infr= adead.org/ > diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc= /kdoc_parser.py > index 80d4245acd172..54b4b7bb32de4 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 > =20 > hint =3D self.get_suggestions_hint(param_name, self.entry.pa= rameterlist) [Severity: Medium] As reported by TAKANO Mitsuhiro on v2 [1], does this endswith() check suppress excess-member warnings for ordinary named nested structs and unions that do not use struct_group_tagged()? When a regular nested member such as foo.bar is documented as @bar: without its struct prefix, check_sections() now skips it instead of warning and suggesting @foo.bar via get_suggestions_hint(). > diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdo= c/xforms_lists.py > index db23fb650ea85..a4c5b111d191f 100644 > --- a/tools/lib/python/kdoc/xforms_lists.py > +++ b/tools/lib/python/kdoc/xforms_lists.py > @@ -62,7 +62,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+ };"), > (CMatch("context_lock_struct"), r"struct \1"), > ] [Severity: Medium] As reported by TAKANO Mitsuhiro on v2 [2], does rewriting struct_group_tagged() into only a named nested struct cause the inner member descriptions to be dropped from the rendered output? rewrite_struct_members() prefixes each inner member with the group name (such as fast.order), while dump_section() stores @order: in self.entry.parameterdescs under the unqualified key "order". push_parameter() then fails to find "fast.order" in parameterdescs, sets self.entry.parameterdescs["fast.order"] =3D self.undescribed, and skips the missing-description warning because "." is in the parameter name. Because check_sections() only suppresses the excess-member warning for "order" without copying its description to "fast.order", RestFormat.out_struct() and ManFormat.out_struct() see KernelDoc.undescribed for every inner member in parameterlist and omit all of their descriptions from the generated documentation. [1] https://lore.kernel.org/r/179527340172.2367332.3292077208678045371@gmai= l.com [2] https://lore.kernel.org/r/179527340172.2367332.3292077208678045371@gmai= l.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129114700.1261= 4-1-emmaonana18@gmail.com?part=3D1