diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-04-28 05:16:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:48 -0400 |
commit | 46b958eb808b73a232efc962e730faffe7cff5c5 (patch) | |
tree | a2957b555a3c9dd38f86d595241026f5360c5f55 /scripts | |
parent | 94dc7ad5502e7d74e2fd74651743f5f1773aa1fe (diff) |
kernel-doc: detect trailing kernel-doc line trash
Print a warning when a kernel-doc comment block ends with text on the same
line as the ending comment characters, e.g.:
* this text is lost. */
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kernel-doc | 5 |
1 files changed, 5 insertions, 0 deletions
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($) { | |||
1950 | $section = $section_default; | 1950 | $section = $section_default; |
1951 | $contents = ""; | 1951 | $contents = ""; |
1952 | } | 1952 | } |
1953 | # look for doc_com + <text> + doc_end: | ||
1954 | if ($_ =~ m'\s*\*\s*[a-zA-Z_0-9:\.]+\*/') { | ||
1955 | print STDERR "Warning(${file}:$.): suspicious ending line: $_"; | ||
1956 | ++$warnings; | ||
1957 | } | ||
1953 | 1958 | ||
1954 | $prototype = ""; | 1959 | $prototype = ""; |
1955 | $state = 3; | 1960 | $state = 3; |