summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorMichael S. Tsirkin2016-01-04 09:00:10 +0100
committerMichael S. Tsirkin2016-01-12 19:47:08 +0100
commit43e361f23c49dbddf74f56ddf6cdd85c5dbff6da (patch)
treee4847979c0344827a22bceb56eeaf02e409eed83 /scripts/checkpatch.pl
parentcheckpatch: check for __smp outside barrier.h (diff)
downloadkernel-qcow2-linux-43e361f23c49dbddf74f56ddf6cdd85c5dbff6da.tar.gz
kernel-qcow2-linux-43e361f23c49dbddf74f56ddf6cdd85c5dbff6da.tar.xz
kernel-qcow2-linux-43e361f23c49dbddf74f56ddf6cdd85c5dbff6da.zip
checkpatch: add virt barriers
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>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 25476c29bb18..c7bf1aa2eeb3 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -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*\(/) {