Skip to content

Commit

Permalink
scripts/kernel-doc: make unknown function prototype a Warning instead…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Randy Dunlap authored and Michal Marek committed Nov 6, 2013
1 parent f29b5f3 commit 9645ae8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -2125,8 +2125,7 @@ sub dump_function($$) {

create_parameterlist($args, ',', $file);
} else {
print STDERR "Error(${file}:$.): cannot understand prototype: '$prototype'\n";
++$errors;
print STDERR "Warning(${file}:$.): cannot understand function prototype: '$prototype'\n";
return;
}

Expand Down

0 comments on commit 9645ae8

Please sign in to comment.