From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 274A72C032E for ; Fri, 12 Jun 2026 19:34:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781292860; cv=none; b=LCleJpIuZSpS8lUjaNAOFhn5spoMU5NKLd7ZTrxDHkLo1+3eAZbB5orjVA2BuaVtf5Nn4JBbSwP7DUxNohwQQSzo55vbNVKjGnW35Dlc6HjScpsE91bv3WN1Fn9F1L7rWyRqLE5RRaaCCzIxOhwmRJ2t6olnrNoOWRQmSysFaCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781292860; c=relaxed/simple; bh=GHwWXb66w9j9VHS79WBsu2PC0wvKhAf+OQwXA00oUsU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=DyEbdBTNSKmJikbDy9lmmD1X8a8GZFRLrHdWVl085m4e/c0goQTvuDOKHUPHe9JeFc0qzeZjkm8P7vaMJ9S0NEnZAnpIDvOMaN9P5L+HhOkXOX5p0DhA/CyjVS+HZoLdR6U3uSsoG2Zib7SYpB/FkR75mrXCJpsKtyyhD5XDVcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=V228jfR/; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="V228jfR/" DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 7499040430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1781292858; bh=+jrRHXPPn/G5yx22VWfBGHFMZGcTrU0+4kulvsrKkJM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V228jfR/s1z9KSaw8MSvkcG2egSYhBI5B4POYvEQu0EoQyQmSeLKMI8/12Oyxxrom tcG59WHIn43JIF7rn7L9oFZ7TjpWOZ3ZloS8Jzlk3VjGA2d3fzjr8x5Vot74PLffDP QOY71Nn9n2IJImx/iepU7choXUnadCq2fN6QVdjzW6SPyXLu8uDn6yBD2OxMzByOFB Vp74hymfAh+nL38NWxg4mnXAqfGrC3mb+YmRkBUirFBr4JQ5vmX8KfADjEuEL6sekJ 9Uli+MZCEQ6RL2JH3qssrYMyu/q+wRMcNENz48pmZLnXotDeEANgXtWlatI1KBhz3r 0sdoS1v0dRgIA== Received: from localhost (unknown [IPv6:2601:280:4600:27b:67c:16ff:fe81:5f9b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 7499040430; Fri, 12 Jun 2026 19:34:18 +0000 (UTC) From: Jonathan Corbet To: Randy Dunlap , linux-doc@vger.kernel.org Cc: Randy Dunlap , Shuah Khan , Mauro Carvalho Chehab , Harry Wentland , Alex Hung , Ivan Lipski , Dan Wheeler , Alex Deucher , Christian =?utf-8?Q?K=C3=B6nig?= , amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] kdoc: xforms: ignore special static/inline macros In-Reply-To: <20260602031214.2817411-1-rdunlap@infradead.org> References: <20260602031214.2817411-1-rdunlap@infradead.org> Date: Fri, 12 Jun 2026 13:34:17 -0600 Message-ID: <87ldcj5z9i.fsf@trenco.lwn.net> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Randy Dunlap writes: > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c contains 7 (for > now) functions that use STATIC_IFN_KUNIT or INLINE_IFN_KUNIT macros for > function qualifiers (static or not, inline or not). > > These cause parse warnings from kernel-doc: > Invalid C declaration: Expected identifier in nested name, got keyword: > struct [error at 29] > STATIC_IFN_KUNIT const struct drm_color_lut * __extract_blob_lut (const > struct drm_property_blob *blob, uint32_t *size) > > Handle these in kernel-doc to prevent multiple warnings. > > Fixes: 647d1fd04652 ("drm/amd/display: Add KUnit test for color helpers") > Signed-off-by: Randy Dunlap > --- > Cc: Jonathan Corbet > Cc: Shuah Khan > Cc: Mauro Carvalho Chehab > Cc: Harry Wentland > Cc: Alex Hung > Cc: Ivan Lipski > Cc: Dan Wheeler > Cc: Alex Deucher > Cc: Christian K=C3=B6nig > Cc: amd-gfx@lists.freedesktop.org > > tools/lib/python/kdoc/xforms_lists.py | 2 ++ > 1 file changed, 2 insertions(+) > > --- linux-next-20260601.orig/tools/lib/python/kdoc/xforms_lists.py > +++ linux-next-20260601/tools/lib/python/kdoc/xforms_lists.py > @@ -104,6 +104,8 @@ class CTransforms: > (CMatch("__context_unsafe"), ""), > (CMatch("__attribute_const__"), ""), > (CMatch("__attribute__"), ""), > + (CMatch("STATIC_IFN_KUNIT"), ""), > + (CMatch("INLINE_IFN_KUNIT"), ""), So I can't get this one to apply; which tree did you patch here? Thanks, jon