]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: xforms_lists: allow __maybe_unused in func parameters
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 11 Apr 2026 23:35:26 +0000 (16:35 -0700)
committerJonathan Corbet <corbet@lwn.net>
Mon, 27 Apr 2026 10:07:06 +0000 (04:07 -0600)
Bart has a patch (not yet merged) that causes kernel-doc warnings:

WARNING: ./include/linux/highmem.h:235 function parameter '__maybe_unused' not described in 'clear_user_pages'
Documentation/mm/highmem:211: ./include/linux/highmem.h:222: WARNING: Error in declarator or parameters

Handle this by adding "__maybe_unused" to the list of known function
parameter modifiers.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604120025.jtlnpWff-lkp@intel.com/
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260411233526.3909303-1-rdunlap@infradead.org>

tools/lib/python/kdoc/xforms_lists.py

index f6ea9efb11aee65c427046e10be5b6d84e527c9b..496c521882739d7020eeaf868192f03a49e5fd28 100644 (file)
@@ -93,6 +93,7 @@ class CTransforms:
         (CMatch("__weak"), ""),
         (CMatch("__sched"), ""),
         (CMatch("__always_unused"), ""),
+        (CMatch("__maybe_unused"), ""),
         (CMatch("__printf"), ""),
         (CMatch("__(?:re)?alloc_size"), ""),
         (CMatch("__diagnose_as"), ""),