diff options
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index ac18eb5ed776..710615f3a4ff 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -542,8 +542,11 @@ sub dump_section { | |||
| 542 | $new_start_line = 0; | 542 | $new_start_line = 0; |
| 543 | } else { | 543 | } else { |
| 544 | if (defined($sections{$name}) && ($sections{$name} ne "")) { | 544 | if (defined($sections{$name}) && ($sections{$name} ne "")) { |
| 545 | print STDERR "${file}:$.: warning: duplicate section name '$name'\n"; | 545 | # Only warn on user specified duplicate section names. |
| 546 | ++$warnings; | 546 | if ($name ne $section_default) { |
| 547 | print STDERR "${file}:$.: warning: duplicate section name '$name'\n"; | ||
| 548 | ++$warnings; | ||
| 549 | } | ||
| 547 | $sections{$name} .= $contents; | 550 | $sections{$name} .= $contents; |
| 548 | } else { | 551 | } else { |
| 549 | $sections{$name} = $contents; | 552 | $sections{$name} = $contents; |
