From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si0M0-0005g6-L4 for qemu-devel@nongnu.org; Fri, 22 Jun 2012 05:40:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Si0Lu-0005ED-3E for qemu-devel@nongnu.org; Fri, 22 Jun 2012 05:40:36 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:34857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si0Lt-0005Av-RW for qemu-devel@nongnu.org; Fri, 22 Jun 2012 05:40:30 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Jun 2012 10:40:26 +0100 Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5M9eEud2400484 for ; Fri, 22 Jun 2012 10:40:14 +0100 Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5M9eDAj009690 for ; Fri, 22 Jun 2012 03:40:14 -0600 From: Stefan Hajnoczi Date: Fri, 22 Jun 2012 10:40:04 +0100 Message-Id: <1340358009-16033-8-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1340358009-16033-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1340358009-16033-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 07/12] checkpatch: Add QEMU specific rule List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi From: Stefan Weil The new rule detects two wrong variants of QEMU. It was tested with commit b5a8fe5e. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- scripts/checkpatch.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8850a5f..b98dc6c 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 -- 1.7.10