Received: from eggs.gnu.org ([2001:4830:134:3::10]:59887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmyBq-0001bL-Jo for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:13:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmyBm-0002hQ-DQ for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:13:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmyBm-0002h1-7S for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:12:58 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A9E7565750 for ; Thu, 22 Sep 2016 07:12:57 +0000 (UTC) From: Markus Armbruster References: <1474476607-4990-1-git-send-email-pbonzini@redhat.com> Date: Thu, 22 Sep 2016 09:12:55 +0200 In-Reply-To: <1474476607-4990-1-git-send-email-pbonzini@redhat.com> (Paolo Bonzini's message of "Wed, 21 Sep 2016 18:50:07 +0200") Message-ID: <871t0cpfuw.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] checkpatch: downgrade "architecture specific defines should be avoided" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, famz@redhat.com Paolo Bonzini writes: > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index dde3f5f..3afa19a 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -2407,7 +2407,7 @@ sub process { > # we have e.g. CONFIG_LINUX and CONFIG_WIN32 for common cases > # where they might be necessary. > if ($line =~ m@^.\s*\#\s*if.*\b__@) { > - ERROR("architecture specific defines should be avoided\n" . $herecurr); > + WARN("architecture specific defines should be avoided\n" . $herecurr); > } > > # Check that the storage class is at the beginning of a declaration git-grep finds almost 400 of them. We certainly want people to think twice (or thrice) before they add more. The question to discuss here is whether we want to force that thinking onto the list. If yes, keep ERROR. If no, downgrade to warn.