From: Randy Dunlap Date: Thu, 17 Oct 2013 23:32:01 +0000 (-0700) Subject: scripts/kernel-doc: make unknown function prototype a Warning instead of an Error X-Git-Tag: upstream/snapshot3+hdmi~3486^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9645ae84ef52d61bc48732a25e57554fc1a9754a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: Mark Brown Signed-off-by: Michal Marek --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 4305b2f..16e8b50 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -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; }