[ovs-dev] [PATCH v2] checkpatch: Reset line counter.

Aaron Conole aconole at redhat.com
Tue Oct 10 14:00:02 UTC 2017


Ilya Maximets <i.maximets at samsung.com> writes:

> Lines should be counted for each file separately.
>
> Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
> ---

Looks good to me.  Thanks, Ilya!

Acked-by: Aaron Conole <aconole at redhat.com>

> Version 2:
> 	* Fixed commit message.
>
>  utilities/checkpatch.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
> index 185ddaf..33feb6b 100755
> --- a/utilities/checkpatch.py
> +++ b/utilities/checkpatch.py
> @@ -64,10 +64,11 @@ def print_warning(message):
>  
>  
>  def reset_counters():
> -    global __errors, __warnings
> +    global __errors, __warnings, total_line
>  
>      __errors = 0
>      __warnings = 0
> +    total_line = 0
>  
>  
>  # These are keywords whose names are normally followed by a space and


More information about the dev mailing list