checkpatch: downgrade "architecture specific defines should be avoided"
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Sep 2016 16:49:07 +0000 (18:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Sep 2016 09:57:29 +0000 (11:57 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/checkpatch.pl

index dde3f5f9d98a5acf7ad978554c56bc7d506ba281..3afa19a766c2ae371ef382dfeee5247d3720c8c1 100755 (executable)
@@ -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