From: Randy Dunlap Date: Mon, 8 Jan 2024 00:37:00 +0000 (-0800) Subject: kernel-doc: drop looking for "MACDOC" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d2a70e28ef738765f9226731dfdb3b6c06565456;p=linux.git kernel-doc: drop looking for "MACDOC" Linux kernel does not use "MACDOC" in any documenation or any source files, so stop searching for it. Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Signed-off-by: Jonathan Corbet Link: https://lore.kernel.org/r/20240108003700.13418-1-rdunlap@infradead.org --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 4277af79de865..915e7bd97486e 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1907,7 +1907,7 @@ sub process_proto_function($$) { $x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line - if ($x =~ m#\s*/\*\s+MACDOC\s*#io || ($x =~ /^#/ && $x !~ /^#\s*define/)) { + if ($x =~ /^#/ && $x !~ /^#\s*define/) { # do nothing } elsif ($x =~ /([^\{]*)/) {