aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2013-10-17 19:32:01 -0400
committerMichal Marek <mmarek@suse.cz>2013-11-06 16:00:35 -0500
commit9645ae84ef52d61bc48732a25e57554fc1a9754a (patch)
treefc16c30dc49d562ef17b05c7f24d2793d7d3ee7c /scripts/kernel-doc
parentf29b5f3e6fc0a8b7a1c3f626d09bfa17ccb61f99 (diff)
scripts/kernel-doc: make unknown function prototype a Warning instead of an Error
When scripts/kernel-doc cannot understand a function prototype, it had been generating a fatal error and stopping immediately. Make this a Warning instead of an Error and keep going. Note that this can happen if the kernel-doc notation that is being parsed is not actually a function prototype; maybe it's a struct or something else, so I added "function" to the warning message to try to make it clearer that scripts/kernel-doc is looking for a function prototype here. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Mark Brown <broonie@kernel.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 4305b2f2ec5e..16e8b50c8fcb 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -2125,8 +2125,7 @@ sub dump_function($$) {
2125 2125
2126 create_parameterlist($args, ',', $file); 2126 create_parameterlist($args, ',', $file);
2127 } else { 2127 } else {
2128 print STDERR "Error(${file}:$.): cannot understand prototype: '$prototype'\n"; 2128 print STDERR "Warning(${file}:$.): cannot understand function prototype: '$prototype'\n";
2129 ++$errors;
2130 return; 2129 return;
2131 } 2130 }
2132 2131