Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpatch.pl: Update DT vendor prefix check

In commit 8122de54602e ("dt-bindings: Convert vendor prefixes to
json-schema"), vendor-prefixes.txt has been converted to a DT schema.
Update the checkpatch.pl DT check to extract vendor prefixes from the new
vendor-prefixes.yaml file.

Fixes: 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema")
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Rob Herring <robh@kernel.org>

+2 -2
+2 -2
scripts/checkpatch.pl
··· 3027 3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; 3028 3028 3029 3029 my $dt_path = $root . "/Documentation/devicetree/bindings/"; 3030 - my $vp_file = $dt_path . "vendor-prefixes.txt"; 3030 + my $vp_file = $dt_path . "vendor-prefixes.yaml"; 3031 3031 3032 3032 foreach my $compat (@compats) { 3033 3033 my $compat2 = $compat; ··· 3042 3042 3043 3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; 3044 3044 my $vendor = $1; 3045 - `grep -Eq "^$vendor\\b" $vp_file`; 3045 + `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`; 3046 3046 if ( $? >> 8 ) { 3047 3047 WARN("UNDOCUMENTED_DT_STRING", 3048 3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr);