Message ID | 1475142864.31297.5.camel@tiscali.nl (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Mike Snitzer |
Headers | show |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 206a6b3..b47201d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5693,7 +5693,7 @@ sub process { $r2 = $a1; } if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ && - !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) { + !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*\b/)) { if (WARN("ALLOC_WITH_MULTIPLY", "Prefer $newfunc over $oldfunc with multiply\n" . $herecurr) && $fix) {