The patch titled Subject: checkpatch: improve CONSTANT_COMPARISON test for structure members has been removed from the -mm tree. Its filename was checkpatch-improve-constant_comparison-test-for-structure-members.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Joe Perches <joe@xxxxxxxxxxx> Subject: checkpatch: improve CONSTANT_COMPARISON test for structure members A "." dereference to an all uppercase structure member can be incorrectly reported as a CONSTANT_COMPARISON. ie: "if (table[i].PANELID == tempdx)" Fix it by checking for "." before the constant test. Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN scripts/checkpatch.pl~checkpatch-improve-constant_comparison-test-for-structure-members scripts/checkpatch.pl --- a/scripts/checkpatch.pl~checkpatch-improve-constant_comparison-test-for-structure-members +++ a/scripts/checkpatch.pl @@ -4291,7 +4291,7 @@ sub process { my $comp = $3; my $to = $4; my $newcomp = $comp; - if ($lead !~ /$Operators\s*$/ && + if ($lead !~ /(?:$Operators|\.)\s*$/ && $to !~ /^(?:Constant|[A-Z_][A-Z0-9_]*)$/ && WARN("CONSTANT_COMPARISON", "Comparisons should place the constant on the right side of the test\n" . $herecurr) && _ Patches currently in -mm which might be from joe@xxxxxxxxxxx are checkpatch-add-prefer_is_enabled-test.patch checkpatch-add-test-for-keywords-not-starting-on-tabstops.patch checkpatch-whine-about-access_once.patch checkpatch-advertise-the-fix-and-fix-inplace-options-more.patch checkpatch-add-list-types-to-show-message-types-to-show-or-ignore.patch checkpatch-reduce-number-of-git-log-calls-with-git.patch checkpatch-improve-git-commit-count-shortcut.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