Skip to content

Commit

Permalink
checkpatch: add virt barriers
Browse files Browse the repository at this point in the history
Add virt_ barriers to list of barriers to check for
presence of a comment.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Julian Calaby <[email protected]>
Acked-by: Joe Perches <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
  • Loading branch information
mstsirkin committed Jan 12, 2016
1 parent f4073b0 commit 43e361f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5133,7 +5133,8 @@ sub process {
}x;
my $all_barriers = qr{
(?:$barriers)|
smp_(?:$barrier_stems)
smp_(?:$barrier_stems)|
virt_(?:$barrier_stems)
}x;

if ($line =~ /\b(?:$all_barriers)\s*\(/) {
Expand Down

0 comments on commit 43e361f

Please sign in to comment.