Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753418Ab0LSJbl (ORCPT ); Sun, 19 Dec 2010 04:31:41 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:59288 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752240Ab0LSJbj (ORCPT ); Sun, 19 Dec 2010 04:31:39 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=DP5o0Aaa+aJ0Rqog8pEOkC14kl4OXnvGz7mT7NyuQPdJh27vM7OWhCUfs4GlimdUHS dCVNa7f2Wa684QWwygwNmgViaQDl40pO/bKvBwCzsI2myzkCGoMLe78mQPT6+LGAXpBl jvEjAwlwhTmWgdE5mUhEDx5qbcqdUP3alBWkY= Message-ID: <4D0DD027.4000507@gmail.com> Date: Sun, 19 Dec 2010 10:28:07 +0100 From: Marco Stornelli User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 MIME-Version: 1.0 To: Linux Kernel CC: apw@canonical.com, joe@perches.com Subject: [PATCH][RESEND] scripts: add no-warning option to the checkpatch script Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1417 Lines: 48 From: Marco Stornelli Add no-warning option to the checkpatch script. Signed-off-by: Marco Stornelli --- --- linux-2.6.37-rc6-orig/scripts/checkpatch.pl 2010-12-16 02:24:48.000000000 +0100 +++ linux-2.6.37-rc6/scripts/checkpatch.pl 2010-12-18 10:31:11.000000000 +0100 @@ -15,6 +15,7 @@ my $V = '0.31'; use Getopt::Long qw(:config no_auto_abbrev); my $quiet = 0; +my $chk_warn = 1; my $tree = 1; my $chk_signoff = 1; my $chk_patch = 1; @@ -39,6 +40,7 @@ Version: $V Options: -q, --quiet quiet + --no-warning do not report warnings --no-tree run without a kernel tree --no-signoff do not check for 'Signed-off-by' line --patch treat FILE as patchfile (default) @@ -65,6 +67,7 @@ EOM GetOptions( 'q|quiet+' => \$quiet, + 'warning!' => \$chk_warn, 'tree!' => \$tree, 'signoff!' => \$chk_signoff, 'patch!' => \$chk_patch, @@ -1108,7 +1111,7 @@ sub ERROR { } } sub WARN { - if (report("WARNING: $_[0]\n")) { + if ($chk_warn && report("WARNING: $_[0]\n")) { our $clean = 0; our $cnt_warn++; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/