summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-06-17 06:57:41 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-06-22 09:41:31 +0100
commit9964d8f9422e72fc6026049b966544c8e40a7b67 (patch)
tree0086eaa61b8ea7fb88c36400abce524c34a5deb0 /scripts
parentbf7eaa5ffcd65ccca2ace9db37a403202d7f1274 (diff)
checkpatch: Add QEMU specific rule
The new rule detects two wrong variants of QEMU. It was tested with commit b5a8fe5e. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 8850a5f43..b98dc6cad 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2849,6 +2849,11 @@ sub process {
ERROR("lockdep_no_validate class is reserved for device->mutex.\n" . $herecurr);
}
}
+
+# QEMU specific tests
+ if ($rawline =~ /\b(?:Qemu|QEmu)\b/) {
+ WARN("use QEMU instead of Qemu or QEmu\n" . $herecurr);
+ }
}
# If we have no input at all, then there is nothing to report on