]> www.infradead.org Git - users/hch/misc.git/commitdiff
docs: kdoc: remove redundant comment stripping
authorJonathan Corbet <corbet@lwn.net>
Thu, 14 Aug 2025 15:40:35 +0000 (09:40 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 18 Aug 2025 16:19:19 +0000 (10:19 -0600)
By the time stuff gets to create_parameter_list(), comments have long since
been stripped out, so we do not need to do it again here.

Acked-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250814154035.328769-8-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py

index 998b1ece932a2266bc37abf2bcb6bbcfc0bc2582..a560546c18679a7f4efd9d52426836d19c6a13c4 100644 (file)
@@ -493,9 +493,6 @@ class KernelDoc:
             args = arg_expr.sub(r"\1#", args)
 
         for arg in args.split(splitter):
-            # Strip comments
-            arg = KernRe(r'/\*.*\*/').sub('', arg)
-
             # Ignore argument attributes
             arg = KernRe(r'\sPOS0?\s').sub(' ', arg)