Skip to content

Commit b211a30

Browse files
rddunlapJonathan Corbet
authored andcommitted
docs: kdoc_parser: allow __exit in function prototypes
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>
1 parent 0a83293 commit b211a30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/lib/python/kdoc/kdoc_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
(KernRe(r"^__FORTIFY_INLINE +"), ""),
176176
(KernRe(r"__init +"), ""),
177177
(KernRe(r"__init_or_module +"), ""),
178+
(KernRe(r"__exit +"), ""),
178179
(KernRe(r"__deprecated +"), ""),
179180
(KernRe(r"__flatten +"), ""),
180181
(KernRe(r"__meminit +"), ""),

0 commit comments

Comments
 (0)