]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: kdoc_parser: allow __exit in function prototypes
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 6 Feb 2026 06:54:40 +0000 (22:54 -0800)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Feb 2026 19:46:28 +0000 (12:46 -0700)
Handle functions that are marked with __exit to prevent warnings:

Documentation/networking/iucv:35: ../net/iucv/iucv.c:1918: WARNING: Error in declarator or parameters
Invalid C declaration: Expecting "(" in parameters. [error at 12]
  void __exit iucv_exit (void)
  ------------^

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260206065440.2412185-1-rdunlap@infradead.org>

tools/lib/python/kdoc/kdoc_parser.py

index fd57944ae90768f059559447cdda1a42cdd114f8..ca00695b47b3100c1f131b497a496cfed0c2a38d 100644 (file)
@@ -175,6 +175,7 @@ function_xforms  = [
     (KernRe(r"^__FORTIFY_INLINE +"), ""),
     (KernRe(r"__init +"), ""),
     (KernRe(r"__init_or_module +"), ""),
+    (KernRe(r"__exit +"), ""),
     (KernRe(r"__deprecated +"), ""),
     (KernRe(r"__flatten +"), ""),
     (KernRe(r"__meminit +"), ""),