diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 99364a5e77f2..83cee18a02e9 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1950,6 +1950,11 @@ sub process_file($) { $section = $section_default; $contents = ""; } + # look for doc_com + + doc_end: + if ($_ =~ m'\s*\*\s*[a-zA-Z_0-9:\.]+\*/') { + print STDERR "Warning(${file}:$.): suspicious ending line: $_"; + ++$warnings; + } $prototype = ""; $state = 3;