Received: from eggs.gnu.org ([2001:4830:134:3::10]:50682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXODn-00022h-6N for qemu-devel@nongnu.org; Wed, 10 Aug 2016 03:46:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXODj-0003Q5-0k for qemu-devel@nongnu.org; Wed, 10 Aug 2016 03:46:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:11211 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXODi-0003Q0-Ri for qemu-devel@nongnu.org; Wed, 10 Aug 2016 03:46:34 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7A7hq8T073543 for ; Wed, 10 Aug 2016 03:46:34 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 24qm9trjgy-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Aug 2016 03:46:33 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Aug 2016 08:46:32 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 3184717D805A for ; Wed, 10 Aug 2016 08:47:55 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u7A7kFcM5964036 for ; Wed, 10 Aug 2016 07:46:15 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u7A7kFJ7024287 for ; Wed, 10 Aug 2016 01:46:15 -0600 Date: Wed, 10 Aug 2016 09:46:14 +0200 From: Cornelia Huck In-Reply-To: <1470757664-25161-3-git-send-email-pbonzini@redhat.com> References: <1470757664-25161-1-git-send-email-pbonzini@redhat.com> <1470757664-25161-3-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160810094614.3a26b0a5.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 2/3] checkpatch: bump most warnings to errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, thuth@redhat.com, famz@redhat.com, armbru@redhat.com On Tue, 9 Aug 2016 17:47:43 +0200 Paolo Bonzini wrote: > This only leaves a warning-level message for extra-long lines, which > are relatively common and cause patchew to send email that will likely > be ignored. > > Signed-off-by: Paolo Bonzini > --- > scripts/checkpatch.pl | 66 +++++++++++++++++++++++++-------------------------- > 1 file changed, 33 insertions(+), 33 deletions(-) > > # no volatiles please > my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b}; > if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) { > - WARN("Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt\n" . $herecurr); > + ERROR("Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt\n" . $herecurr); It's a bit weird to have this refer to a Linux file :)