aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-06-08 23:03:30 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2003-06-08 23:03:30 +0200
commit184a56cb9be20e74cef777ff0d4c0fbb08db5f30 (patch)
treec8125e7294db57b74756bafe16085e734a977e4e /scripts
parent4949833a590e03775c29e83154ffb8a615b5c66a (diff)
parent19c273c5de39f18180c31ff259c6a8c4280c0c82 (diff)
downloadhistory-184a56cb9be20e74cef777ff0d4c0fbb08db5f30.tar.gz
Merge mars.ravnborg.org:/home/sam/src/linux/kernel/bk/linux-2.5
into mars.ravnborg.org:/home/sam/src/linux/kernel/bk/docbook
Diffstat (limited to 'scripts')
-rw-r--r--scripts/docproc.c2
-rwxr-xr-xscripts/kernel-doc15
2 files changed, 13 insertions, 4 deletions
diff --git a/scripts/docproc.c b/scripts/docproc.c
index 5db4093d58da1..18e1d45a7ff9f 100644
--- a/scripts/docproc.c
+++ b/scripts/docproc.c
@@ -93,7 +93,7 @@ void exec_kernel_doc(char **svec)
waitpid(pid, &ret ,0);
}
if (WIFEXITED(ret))
- exitstatus = WEXITSTATUS(ret);
+ exitstatus |= WEXITSTATUS(ret);
else
exitstatus = 0xff;
}
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index b586ca4cacea6..3c02ef90abc82 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -154,6 +154,7 @@ use strict;
# '%CONST' - name of a constant.
my $errors = 0;
+my $warnings = 0;
# match expressions used to find embedded type information
my $type_constant = '\%([-_\w]+)';
@@ -1352,7 +1353,9 @@ sub create_parameterlist($$$) {
"or member '$param' not " .
"described in '$declaration_name'\n";
}
- ++$errors;
+ print STDERR "Warning(${file}:$.):".
+ " No description found for parameter '$param'\n";
+ ++$warnings;
}
push @parameterlist, $param;
@@ -1456,6 +1459,12 @@ foreach (@ARGV) {
chomp;
process_file($_);
}
+if ($verbose && $errors) {
+ print STDERR "$errors errors\n";
+}
+if ($verbose && $warnings) {
+ print STDERR "$warnings warnings\n";
+}
exit($errors);
@@ -1580,7 +1589,7 @@ sub process_file($) {
} else {
print STDERR "Warning(${file}:$.): Cannot understand $_ on line $.",
" - I thought it was a doc line\n";
- ++$errors;
+ ++$warnings;
$state = 0;
}
} elsif ($state == 2) { # look for head: lines, and include content
@@ -1633,7 +1642,7 @@ sub process_file($) {
} else {
# i dont know - bad line? ignore.
print STDERR "Warning(${file}:$.): bad line: $_";
- ++$errors;
+ ++$warnings;
}
} elsif ($state == 3) { # scanning for function { (end of prototype)
if ($decl_type eq 'function') {