Skip to content

Commit

Permalink
checkpatch: downgrade "architecture specific defines should be avoided"
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Sep 27, 2016
1 parent 048a2e8 commit 63ae8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63ae8b9

Please sign in to comment.