projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5d9166
)
docs: kdoc: remove redundant comment stripping
author
Jonathan Corbet
<corbet@lwn.net>
Thu, 14 Aug 2025 15:40:35 +0000
(09:40 -0600)
committer
Jonathan 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
patch
|
blob
|
history
diff --git
a/scripts/lib/kdoc/kdoc_parser.py
b/scripts/lib/kdoc/kdoc_parser.py
index
998b1ec
..
a560546
100644
(file)
--- a/
scripts/lib/kdoc/kdoc_parser.py
+++ b/
scripts/lib/kdoc/kdoc_parser.py
@@
-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)