Merge "checkpatch: check symlinks while searching compatible strings"

This commit is contained in:
qctecmdr 2019-12-04 00:06:53 -08:00 • committed by Gerrit - the friendly Code Review server
commit 2f61ee8554

View file

@ -3183,7 +3183,7 @@ sub process {
$compat2 =~ s/\,[a-zA-Z0-9]*\-/\,<\.\*>\-/;
my $compat3 = $compat;
$compat3 =~ s/\,([a-z]*)[0-9]*\-/\,$1<\.\*>\-/;
`grep -Erq "$compat|$compat2|$compat3" $dt_path`;
`grep -ERq "$compat|$compat2|$compat3" $dt_path`;
if ( $? >> 8 ) {
WARN("UNDOCUMENTED_DT_STRING",
"DT compatible string \"$compat\" appears un-documented -- check $dt_path\n" . $herecurr);