Message ID | 20140730174803.GF20162@leverpostej |
---|---|
State | New |
Headers | show |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 182be0f..8aee3f5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2136,6 +2136,14 @@ sub process { } } +# check for difficult-to-read unit-addresses + if (defined $root && + ($realfile =~ /\.dtsi?$/ && $line =~ /([a-z0-9._\-+]++@([0-9a-f]+))\s*{/gi) && + (length($2) > 8)) { + WARN("LONG_DT_UNIT_ADDRESS", + "Consider splitting long unit address \"$2\" with a comma between cells\n" . $herecurr); + } + # check we are in a valid source file if not then ignore this hunk next if ($realfile !~ /\.(h|c|s|S|pl|sh)$/); ----8<----