From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 5D882606A68C for ; Fri, 4 Dec 2026 21:16:40 +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=EnUjdEpa; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RVw560AO Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 302E540E80; Fri, 4 Dec 2026 21:16:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id KvG8XrjePpOF; Fri, 4 Dec 2026 21:16:39 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 5893A40EDC Authentication-Results: smtp4.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=1796418999; b=JbI/Sc57d8Y3KmMLPJFWv+3dMm1kuXoybfhpPbsS8GMEigNyi8/nJF3XTWA/BVXUSP4M neoHixAOhJqmMIQSLvB69RTMMBKZJlg36cs3b/GJ68hWO3QkWGVhT5nmYTZxwShIz/pdk JMo2E1HI1Q8TNjWQoN3xN/g1YWyRA1J6w1xlVGkjIzCHWUZLde8mPDUBiJ1eilSrpYMXW 9rgIefks1GI0u5VExboDAiKlOOTY9fO4XECLIsesZYd98nAKPoFMkGMxuIdPgibj48GXD YKOHgVovh+6kgZDyoHWF1swo46kM0Dle+fw8mMKaHoryHBBrFLIEo9JpU3JmKwKrtLA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796418999; 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=eyty6Rm5QLyfH89eJz7Fl6M9xqzD385O+8hJSjmIZTM=; b=XGBdAJHJqX48XVAFxD/XS+sse4hllAO8inlHmpiMudnik5QSc+hPKyLzswM7xh2PtqeL y8zPy52vhdQnksZLA8hQZoxWR5YaHC5bXAVYqsKxRW4sPgb7XHra8H9WJqy9jOvnkL4Ka /z2BmuSUXK09/cIhJzlza6egmKUgDlbLHfYIKK5RmJDCWzQJVORrov8O1iWGi3/SgRysH fDmuE24NpfR0pJ3txOjLU4TBNBFI4XDL2hDgxGUpe8tR9dTGnBRZyxN9rXzdjCFKAysrA XdUVXUX+dCla1qrUY94sYt7o8+TF2+jfhK8aS4enY08AE4AGDfHDt/m9RGPd8n8OFDg== ARC-Authentication-Results: i=1; smtp4.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=1796418999; bh=eyty6Rm5QLyfH89eJz7Fl6M9xqzD385O+8hJSjmIZTM=; 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=EnUjdEpay616pUWUzVN5jcExcIivygqH5cGTn0IHlM3Fq/PomUMrpweQBMktTx/uZ qTbnbkhFYpeENTduvQAdWW+yK2d8ncgpHDuxGo8ndApw0qUBjC2GthzMx7Kn9nxPDV e5ctUDSnjs7QWHfKJKDrdiCOI+NbcdeJ7zlVa/p9O080yxVy92rHsTmKRv0BxBSVNx vkZNjU02N5h5X5Tt6QL/rdBgVpmnF0xqWY8YZT+tbRC+zN8vaFrk3ROiUv9JtLWpcY zm3E19KlNHIcXmrW3D6wyc2NTOw7VoU6l6zQ1+g25EpRpa3Qm75KqFM//HXnd6JRf1 Ipn6+4mcKDtGA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 5893A40EDC; Fri, 4 Dec 2026 21:16:39 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 78FA0784 for ; Fri, 4 Dec 2026 21:16:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5EBBA608C1 for ; Fri, 4 Dec 2026 21:16:37 +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 Jx6dSKEXlNW1 for ; Fri, 4 Dec 2026 21:16:36 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 7A8A9607EA Authentication-Results: smtp3.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: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp3.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=RVw560AO Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by smtp3.osuosl.org (Postfix) with ESMTPS id 7A8A9607EA for ; Fri, 4 Dec 2026 21:16:36 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id AAD7C41AF1; Fri, 4 Dec 2026 21:16:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BF541F00936; Fri, 4 Dec 2026 21:16:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796418995; bh=eyty6Rm5QLyfH89eJz7Fl6M9xqzD385O+8hJSjmIZTM=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=RVw560AOOWgJXcDVkqaXgREJL6fl3hiUJ+F7NzAesEMvga3S0tX9OVsDMQZ/yqtmM DMIPUA4Ew/VICM6xaxuTBRwih8pVacO6Ev4GD/xxoxLYp7afWFmPwylU3iFaw0wu5G VkXvDP5m13SHv2kub+coDJvp+h4Q0yv/Qjyj8B40pPSMQl+vjm+tHMCWxQIEdVgWJp yGEUZkE+PCSylPDfI3Yt4+7L3EHv6qJIaWlNaJgEKTyZKWKNBDWVawYpMNLHcm+pkM CDxq7zT82YjtFpF6c5ObC9atwCh8D3o4BTd9QIO9m39eBByMGeOzBO0ZWXvlgjh7k6 n/I8iQYew5l7A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4] docs: kdoc: fix struct_group_tagged() parsing regression To: "Omokefe Emmanuel Onanaroghene" , intel-wired-lan@lists.osuosl.org In-Reply-To: <20261203211616.10272-1-emmaonana18@gmail.com> References: <20261203211616.10272-1-emmaonana18@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 21:16:35 +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=-11.3 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_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 3 potential issues to consider: - [Medium] docs: kdoc: struct_group_tagged() member descriptions dropped from output - [Medium] docs: kdoc: check_sections() hides missing prefixes on all nested structs - [Low] docs: kdoc: struct_group_tagged() hides undocumented member warnings -- commit d7d797016b310e8dcc282c86cfe920ed0b31eda8 Author: Omokefe Emmanuel Onanaroghene docs: kdoc: fix struct_group_tagged() parsing regression This commit updates the struct_group_tagged() kernel-doc transform to preserve the struct tag and member name, relaxes check_sections() to accept unqualified tags matching dotted member suffixes, and adds a unit test based on struct page_pool_params. 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 ef5879b05308b..4bc36fba5fa8a 100644 > --- a/tools/lib/python/kdoc/kdoc_parser.py > +++ b/tools/lib/python/kdoc/kdoc_parser.py > @@ -637,7 +637,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 missing-prefix warnings for all nested structs and unions, not just struct_group_tagged()? This regresses commit 46d9c16115cf ("scripts/kernel-doc: Detect mismatched inline member documentation tags"): writing @atomic_access instead of @attr.atomic_access on an ordinary nested struct like struct xe_bo no longer warns, while out_struct() drops the description. It also makes the submember_exact hint path in get_suggestions_hint() unreachable from check_sections(). > diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdo= c/xforms_lists.py > index fa380055191c5..52415ef211538 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 [1], does rewriting struct_group_tagged() as a named nested struct drop all inner member descriptions from the rendered documentation? rewrite_struct_members() prefixes inner members with the group name (such as fast.order), so push_parameter() misses the unqualified @order in parameterdescs and marks fast.order undescribed. check_sections() silences the warning without migrating the description. RestFormat.out_struct() and ManFormat.out_struct() then skip those undescribed entries, omitting 24 documented member descriptions across the four struct_group_tagged() structs in the tree (including struct page_pool_params). The new TestStructGroupTagged test only asserts that warnings is empty, so it does not catch the dropped descriptions. [Severity: Low] Will prefixing inner struct_group_tagged() members also hide genuine missing-description warnings? KernelDoc.push_parameter() only warns about undocumented members when "." not in param, so dotted names like fast.order now bypass the "not described" check if a member inside struct_group_tagged() lacks kernel-doc. [1] https://lore.kernel.org/r/179527340172.2367332.3292077208678045371@gmai= l.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203211616.1027= 2-1-emmaonana18@gmail.com?part=3D1