From: Paolo Bonzini Date: Wed, 21 Sep 2016 16:49:07 +0000 (+0200) Subject: checkpatch: downgrade "architecture specific defines should be avoided" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63ae8b942d8e4095179bbf1a8946348bc71b7973;p=qemu.git checkpatch: downgrade "architecture specific defines should be avoided" Signed-off-by: Paolo Bonzini --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index dde3f5f9d9..3afa19a766 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