From patchwork Thu Oct 5 15:32:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 821888 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y7Gwg2WHgz9t2V for ; Fri, 6 Oct 2017 02:32:19 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id C8E01AB6; Thu, 5 Oct 2017 15:32:17 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 40733AA5 for ; Thu, 5 Oct 2017 15:32:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id EB88D41D for ; Thu, 5 Oct 2017 15:32:15 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171005153213euoutp01874199bc7a034d606bb7a795ec4a253b~qtlxe3l9m2462724627euoutp01H; Thu, 5 Oct 2017 15:32:13 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171005153212eucas1p11b2d2f1238eb26c57e15bae2aaa1f0cb~qtlwx4gyr2643226432eucas1p1o; Thu, 5 Oct 2017 15:32:12 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id FA.B8.12743.C7056D95; Thu, 5 Oct 2017 16:32:12 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171005153211eucas1p246e0faaf6141036945d3ce0c5e691bce~qtlwGSwtp0156101561eucas1p2h; Thu, 5 Oct 2017 15:32:11 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-a3-59d6507cb96c Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9D.94.18832.B7056D95; Thu, 5 Oct 2017 16:32:11 +0100 (BST) Received: from imaximets.rnd.samsung.ru ([106.109.129.180]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OXC0081VWHHP1C0@eusync3.samsung.com>; Thu, 05 Oct 2017 16:32:11 +0100 (BST) From: Ilya Maximets To: ovs-dev@openvswitch.org Date: Thu, 05 Oct 2017 18:32:03 +0300 Message-id: <1507217523-18282-1-git-send-email-i.maximets@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRmVeSWpSXmKPExsWy7djPc7o1AdciDZb947B4NbmB0WLa59vs Flfaf7JbzP30nNGBxePZzf+MHs+v9bB49G1ZxRjAHMVlk5Kak1mWWqRvl8CV8WL/R5aCE6wV R3uvMDUwrmPpYuTkkBAwkZg05xsThC0mceHeejYQW0hgKaPEsbsmXYxcQPZnRomD3WfZuxg5 wBoaXqVA1CxjlNj9PRqipplJouvUebBBbAI6EqdWH2EEsUUEpCVe975hBbGZBXIkvl1azwQy R1jAWOLEsjqQMIuAqsSPM81ge3kF3CQmHJjICH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82q9mTfCji2dT7FrXOH3SmfZAXi34 bcoEtg+C81I2MZ442bg0XkV4ZujvUxc2F4XcmKO46GPq6bXC7zReR5gqdc7b6lEUcdL0z7Qr 8zqVWIozEg21mIuKEwFx19gC9AEAAA== X-CMS-MailID: 20171005153211eucas1p246e0faaf6141036945d3ce0c5e691bce X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Ilya_Maximets=1BSRR-Virtualization_Lab=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG0xlYWRpbmcgRW5naW5lZXI=?= X-Global-Sender: =?utf-8?q?Ilya_Maximets=1BSRR-Virtualization_Lab=1BSamsu?= =?utf-8?q?ng_Electronics=1BLeading_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BCISHQ=1BC10GD01GD010154?= CMS-TYPE: 201P X-CMS-RootMailID: 20171005153211eucas1p246e0faaf6141036945d3ce0c5e691bce X-RootMTR: 20171005153211eucas1p246e0faaf6141036945d3ce0c5e691bce References: X-Spam-Status: No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Ilya Maximets , Heetae Ahn Subject: [ovs-dev] [PATCH v2] checkpatch: Reset line counter. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Lines should be counted for each file separately. Signed-off-by: Ilya Maximets Acked-by: Aaron Conole --- 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