Re: checkpatch: introduce --nocs to disable CodingStyle warnings.

From: Joe Perches
Date: Tue Mar 22 2011 - 16:21:08 EST


On Tue, 2011-03-22 at 15:58 -0400, Dave Jones wrote:
> How about this ? running checkpatch with --nocs will now only print
> non-CodingStyle related warnings. I may have missed some of the
> conversions, but this seems to silence the more egregious 'noise'.
> Signed-off-by: Dave Jones <davej@xxxxxxxxxx>

Hi Dave.

Trivia only:

> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 58848e3..a2b0086 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -19,6 +19,7 @@ my $tree = 1;
> my $chk_signoff = 1;
> my $chk_patch = 1;
> my $tst_only;
> +my $nocs = 0;

To match the other checkpatch control flag uses,
I think this would be better as:

my $chk_style = 1;

> @@ -55,6 +56,7 @@ Options:

+ --style display warnings about CodingStyle.

etc...

> @@ -80,6 +82,7 @@ GetOptions(
>
> 'debug=s' => \%debug,
> 'test-only=s' => \$tst_only,
> + 'nocs' => \$nocs,

'style!' => \$chk_style,

etc...

And the command line use would be --nostyle

cheers, Joe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/