mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
Merge tag 'dm-pull-10jul20' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm
of-platdata: better phandle and compatible-string support patman support for Python3 on Ubuntu 14.04 new checkpatch check to avoid #ifdefs
This commit is contained in:
@@ -2343,7 +2343,7 @@ sub u_boot_line {
|
||||
}
|
||||
|
||||
# use if instead of #if
|
||||
if ($line =~ /^\+#if.*CONFIG.*/) {
|
||||
if ($realfile =~ /\.c$/ && $line =~ /^\+#if.*CONFIG.*/) {
|
||||
WARN("PREFER_IF",
|
||||
"Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible\n" . $herecurr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user