]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 25476c29bb18e9db18defbc3a4e8ed3825952357..c7bf1aa2eeb3cb046b75100d68b23947562b409c 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*\(/) {