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
51335133 }x;
51345134 my $all_barriers = qr{
51355135 (?:$barriers)|
5136− smp_(?:$barrier_stems)
5136+ smp_(?:$barrier_stems)|
5137+ virt_(?:$barrier_stems)
51375138 }x;
51385139
51395140 if ($line =~ /\b(?:$all_barriers)\s*\(/) {