]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kdoc: xforms_lists: handle DECLARE_PER_CPU() in kernel-doc
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 14 Jun 2026 05:24:52 +0000 (22:24 -0700)
committerJonathan Corbet <corbet@lwn.net>
Tue, 23 Jun 2026 20:37:25 +0000 (14:37 -0600)
Add support for DECLARE_PER_CPU() as a var (variable) as used in
<linux/netfilter/x_tables.h>.

Warning: include/linux/netfilter/x_tables.h:345 function parameter 'seqcount_t' not described in 'DECLARE_PER_CPU'
Warning: include/linux/netfilter/x_tables.h:345 function parameter 'xt_recseq' not described in 'DECLARE_PER_CPU'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260614052452.1557987-1-rdunlap@infradead.org>

tools/lib/python/kdoc/xforms_lists.py

index 0734f9f94bf841a6fee82f1e9f00cd2b19d7951f..e1548afea80effa8c6ce4c1af31a1211006e3b68 100644 (file)
@@ -119,6 +119,7 @@ class CTransforms:
         (CMatch("__guarded_by"), ""),
         (CMatch("__pt_guarded_by"), ""),
         (CMatch("LIST_HEAD"), r"struct list_head \1"),
+        (CMatch("DECLARE_PER_CPU"), r"\1 \2[PER_CPU]; }"),
 
         (KernRe(r"(?://.*)$"), ""),
         (KernRe(r"(?:/\*.*\*/)"), ""),