Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/67337 )
Change subject: lint/checkpatch: Fix incorrect camelcase detection on numeric constant ......................................................................
lint/checkpatch: Fix incorrect camelcase detection on numeric constant
This reduce the difference with linux v6.0-rc3.
Signed-off-by: Elyes Haouas ehaouas@noos.fr Change-Id: I15e1a935665c38b8a2109d412b1d16f935cbb402 --- M util/lint/checkpatch.pl 1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/67337/1
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl index 650ddff..ef2faee 100755 --- a/util/lint/checkpatch.pl +++ b/util/lint/checkpatch.pl @@ -5326,7 +5326,7 @@ $var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[A-Z0-9_]+)?$/ && #Ignore some three character SI units explicitly, like MiB and KHz $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) { - while ($var =~ m{($Ident)}g) { + while ($var =~ m{\b($Ident)}g) { my $word = $1; next if ($word !~ /[A-Z][a-z]|[a-z][A-Z]/); if ($check) {