From: Mauro Carvalho Chehab Date: Wed, 1 Oct 2025 14:49:31 +0000 (+0200) Subject: tools: docs: parse_data_structs.py: accept more reftypes X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=d2a72e1f27c16d23938b26a78d7e1644b06bb5aa;p=linux%2F.git tools: docs: parse_data_structs.py: accept more reftypes Current regex is limited to only some c-domain reftypes. There are several others. Change the code to pick the name specified there. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet Message-ID: <5c146923d1e3183893f290216fb1378954e2e540.1759329363.git.mchehab+huawei@kernel.org> --- diff --git a/tools/docs/lib/parse_data_structs.py b/tools/docs/lib/parse_data_structs.py index 0d537e989ea7..25361996cd20 100755 --- a/tools/docs/lib/parse_data_structs.py +++ b/tools/docs/lib/parse_data_structs.py @@ -214,7 +214,7 @@ class ParseDataStructs: # Parse reference type when the type is specified - match = re.match(r"^\:c\:(data|func|macro|type)\:\`(.+)\`", new) + match = re.match(r"^\:c\:(\w+)\:\`(.+)\`", new) if match: reftype = f":c:{match.group(1)}" new = match.group(2)