scripts/kernel-doc: make unknown function prototype a Warning instead of an Error
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 17 Oct 2013 23:32:01 +0000 (16:32 -0700)
committerMichal Marek <mmarek@suse.cz>
Wed, 6 Nov 2013 21:00:35 +0000 (22:00 +0100)
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>
scripts/kernel-doc

index 4305b2f2ec5eb7f8432c2c6dd7daf983b59f6d24..16e8b50c8fcb6138fada37734c31aa960ee058c7 100755 (executable)
@@ -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;
     }