Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=792aa2f2cc4924024e28c9ddf1456434992f9c41
Commit:     792aa2f2cc4924024e28c9ddf1456434992f9c41
Parent:     3ab32df72bfa7bee9126cc5b1abc037aef124f15
Author:     Randy Dunlap <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 00:13:41 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 08:42:17 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 scripts/kernel-doc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 1c1d350..7df099e 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1907,7 +1907,7 @@ sub process_file($) {
                $newsection = $1;
                $newcontents = $2;
 
-               if ($contents ne "") {
+               if (($contents ne "") && ($contents ne "\n")) {
                    if (!$in_doc_sect && $verbose) {
                        print STDERR "Warning(${file}:$.): contents before 
sections\n";
                        ++$warnings;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to