checkpatch: Document both endianness macros
Both CONFIG_BIG_ENDIAN and CONFIG_LITTLE_ENDIAN can be used in the code, so reflect that in the error message in checkpatch. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
0dd14404e1
commit
192d01eea1
|
@ -6565,7 +6565,7 @@ sub process {
|
|||
# check for uses of __BYTE_ORDER__
|
||||
while ($line =~ /\b(__BYTE_ORDER__)\b/g) {
|
||||
ERROR("BYTE_ORDER",
|
||||
"Use of the '$1' macro is disallowed. Use CONFIG_BIG_ENDIAN instead\n" . $herecurr);
|
||||
"Use of the '$1' macro is disallowed. Use CONFIG_(BIG|LITTLE)_ENDIAN instead\n" . $herecurr);
|
||||
}
|
||||
|
||||
# check for use of yield()
|
||||
|
|
Loading…
Reference in a new issue