checkpatch: add virt barriers
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Jan 2016 08:00:10 +0000 (10:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Jan 2016 18:47:08 +0000 (20:47 +0200)
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>
scripts/checkpatch.pl

index 25476c2..c7bf1aa 100755 (executable)
@@ -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*\(/) {