kernel-doc: drop looking for "MACDOC"
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 8 Jan 2024 00:37:00 +0000 (16:37 -0800)
committerJonathan Corbet <corbet@lwn.net>
Tue, 30 Jan 2024 20:31:04 +0000 (13:31 -0700)
Linux kernel does not use "MACDOC" in any documenation or any
source files, so stop searching for it.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240108003700.13418-1-rdunlap@infradead.org
scripts/kernel-doc

index 4277af79de86592297d0e4fb57956030213dcb42..915e7bd97486ed750b2ca728a35dfd4656d01e30 100755 (executable)
@@ -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 =~ /([^\{]*)/) {