]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
docs: kdoc: remove redundant comment stripping in dump_typedef()
authorJonathan Corbet <corbet@lwn.net>
Mon, 8 Sep 2025 22:49:58 +0000 (16:49 -0600)
committerJonathan Corbet <corbet@lwn.net>
Thu, 18 Sep 2025 16:19:54 +0000 (10:19 -0600)
By the time we get here, comments have long since been stripped out; there
is no need to do it again.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/lib/kdoc/kdoc_parser.py

index 7c739b495d58eaa34c452edd52eb52b375b3c758..ad9df0536bbf49dd99eaa20898b97d39cef54310 100644 (file)
@@ -1034,9 +1034,6 @@ class KernelDoc:
         typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)
         typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)
 
-        # Strip comments
-        proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto)
-
         # Parse function typedef prototypes
         for r in [typedef1, typedef2]:
             if not r.match(proto):