From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmkis-0006LF-7s for qemu-devel@nongnu.org; Wed, 21 Sep 2016 12:50:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmkio-0008M0-4F for qemu-devel@nongnu.org; Wed, 21 Sep 2016 12:50:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmkin-0008Lq-Ug for qemu-devel@nongnu.org; Wed, 21 Sep 2016 12:50:10 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (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 6B32AC04B947 for ; Wed, 21 Sep 2016 16:50:09 +0000 (UTC) From: Paolo Bonzini Date: Wed, 21 Sep 2016 18:50:07 +0200 Message-Id: <1474476607-4990-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH] checkpatch: downgrade "architecture specific defines should be avoided" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: famz@redhat.com, armbru@redhat.com --- 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 -- 2.7.4