History

checkpatch: add virt barriers

Add virt_ barriers to list of barriers to check for presence of a comment.

Michael S. Tsirkin committed 10 years ago

Commit 43e361f1 parent f4073b01 file · +2 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+2−1
@@ -5133,7 +5133,8 @@ sub process { · 5132 unmodified lines
5133 }x;5133 }x;
5134 my $all_barriers = qr{5134 my $all_barriers = qr{
5135 (?:$barriers)|5135 (?:$barriers)|
5136 smp_(?:$barrier_stems)5136 smp_(?:$barrier_stems)|
5137 virt_(?:$barrier_stems)
5137 }x;5138 }x;
5138 5139
5139 if ($line =~ /\b(?:$all_barriers)\s*\(/) {5140 if ($line =~ /\b(?:$all_barriers)\s*\(/) {