checkpatch: downgrade "architecture specific defines should be avoided"
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
048a2e8869
commit
63ae8b942d
|
@ -2407,7 +2407,7 @@ sub process {
|
||||||
# we have e.g. CONFIG_LINUX and CONFIG_WIN32 for common cases
|
# we have e.g. CONFIG_LINUX and CONFIG_WIN32 for common cases
|
||||||
# where they might be necessary.
|
# where they might be necessary.
|
||||||
if ($line =~ m@^.\s*\#\s*if.*\b__@) {
|
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
|
# Check that the storage class is at the beginning of a declaration
|
||||||
|
|
Loading…
Reference in New Issue