The patch titled Subject: checkpatch.pl: add switch to turn off check for Change-Id has been added to the -mm tree. Its filename is checkpatchpl-add-switch-to-turn-off-check-for-change-id.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/checkpatchpl-add-switch-to-turn-off-check-for-change-id.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/checkpatchpl-add-switch-to-turn-off-check-for-change-id.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Pottratz, Dwane" <dwane.pottratz@xxxxxxxxx> Subject: checkpatch.pl: add switch to turn off check for Change-Id A commit hook for the Gerrit code review servers inserts change identifiers. These identifiers are noise in the context of the upstream kernel. However, they are needed in most development environments and the error needs to be ignored for static analysis tools. Signed-off-by: Dwane Pottratz <dwane.pottratz@xxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/checkpatch.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff -puN scripts/checkpatch.pl~checkpatchpl-add-switch-to-turn-off-check-for-change-id scripts/checkpatch.pl --- a/scripts/checkpatch.pl~checkpatchpl-add-switch-to-turn-off-check-for-change-id +++ a/scripts/checkpatch.pl @@ -21,6 +21,7 @@ use Getopt::Long qw(:config no_auto_abbr my $quiet = 0; my $tree = 1; my $chk_signoff = 1; +my $chk_changeid = 1; my $chk_patch = 1; my $tst_only; my $emacs = 0; @@ -64,6 +65,7 @@ Options: -q, --quiet quiet --no-tree run without a kernel tree --no-signoff do not check for 'Signed-off-by' line + --no-changeid do not check for 'Change-Id' line --patch treat FILE as patchfile (default) --emacs emacs compile window format --terse one line per report @@ -136,6 +138,7 @@ GetOptions( 'q|quiet+' => \$quiet, 'tree!' => \$tree, 'signoff!' => \$chk_signoff, + 'changeid!' => \$chk_changeid, 'patch!' => \$chk_patch, 'emacs!' => \$emacs, 'terse!' => \$terse, @@ -2332,7 +2335,7 @@ sub process { } # Check for unwanted Gerrit info - if ($in_commit_log && $line =~ /^\s*change-id:/i) { + if ($in_commit_log && $line =~ /^\s*change-id:/i && $chk_changeid) { ERROR("GERRIT_CHANGE_ID", "Remove Gerrit Change-Id's before submitting upstream.\n" . $herecurr); } _ Patches currently in -mm which might be from dwane.pottratz@xxxxxxxxx are checkpatchpl-add-switch-to-turn-off-check-for-change-id.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html