diff --git a/scripts/kernel-doc b/scripts/kernel-doc index bd29a92b4b48aa1648f8c892c980f1a72c2ad67e..df0f045a9a89401e28b6ca36d6b38218f425ad85 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -3248,4 +3248,4 @@ if ($verbose && $warnings) { print STDERR "$warnings warnings\n"; } -exit($errors); +exit($output_mode eq "none" ? 0 : $errors);