aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2008-02-07 03:13:41 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:17 -0500
commit792aa2f2cc4924024e28c9ddf1456434992f9c41 (patch)
treebb195635b60a88377a302eef800187438b6d9ea8
parent3ab32df72bfa7bee9126cc5b1abc037aef124f15 (diff)
kernel-doc: prevent duplicate description: output
Prevent duplicate output of a Description: section when there is a "blank" ("*") line between the initial function name/description line and the "Description:" header. Test case: drivers/scsi/scsi_devinfo.c::scsi_init_devinfo(). Rob Landley hit this while he was producing SCSI kernel-doc. 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>
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 1c1d350b4901..7df099e6d1fd 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1907,7 +1907,7 @@ sub process_file($) {
1907 $newsection = $1; 1907 $newsection = $1;
1908 $newcontents = $2; 1908 $newcontents = $2;
1909 1909
1910 if ($contents ne "") { 1910 if (($contents ne "") && ($contents ne "\n")) {
1911 if (!$in_doc_sect && $verbose) { 1911 if (!$in_doc_sect && $verbose) {
1912 print STDERR "Warning(${file}:$.): contents before sections\n"; 1912 print STDERR "Warning(${file}:$.): contents before sections\n";
1913 ++$warnings; 1913 ++$warnings;