diff options
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 20136564f264..3ac4b57ed76a 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -524,11 +524,13 @@ sub dump_section { | |||
| 524 | } else { | 524 | } else { |
| 525 | # print STDERR "other section '$name' = '$contents'\n"; | 525 | # print STDERR "other section '$name' = '$contents'\n"; |
| 526 | if (defined($sections{$name}) && ($sections{$name} ne "")) { | 526 | if (defined($sections{$name}) && ($sections{$name} ne "")) { |
| 527 | print STDERR "${file}:$.: error: duplicate section name '$name'\n"; | 527 | print STDERR "${file}:$.: warning: duplicate section name '$name'\n"; |
| 528 | ++$errors; | 528 | ++$warnings; |
| 529 | $sections{$name} .= $contents; | ||
| 530 | } else { | ||
| 531 | $sections{$name} = $contents; | ||
| 532 | push @sectionlist, $name; | ||
| 529 | } | 533 | } |
| 530 | $sections{$name} = $contents; | ||
| 531 | push @sectionlist, $name; | ||
| 532 | } | 534 | } |
| 533 | } | 535 | } |
| 534 | 536 | ||
