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 <mst@redhat.com>
Acked-by: Julian Calaby <julian.calaby@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
  • Loading branch information
Michael S. Tsirkin 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.