summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-08-28 08:51:37 -0400
committerTom Rini <trini@konsulko.com>2020-08-28 08:51:37 -0400
commit9f04a634ef331b4fc6b3e677f276156192a413c7 (patch)
treea6b8663e5d156f85846d187248597888043e0d3e /scripts/checkpatch.pl
parentf87c80ade3911f3d518036a28370fe44c85a95c7 (diff)
parent2ed1b242ab2f9ee7541ae0a655de67832a3eebc1 (diff)
Merge branch '2020-08-27-misc-fixes'
- Fix for gd->ram_top and bootm_size calculations - Assorted Kconfig entry cleanups / fixes. - Make checkpatch.pl error on fdt_high/initrd_high=0xffffffff - Resync scripts/setlocalversion - Other minor bugfixes
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3932362dbaf..4bed2b0cdc7 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2359,6 +2359,12 @@ sub u_boot_line {
ERROR("BARRED_INCLUDE_IN_HDR",
"Avoid including common.h and dm.h in header files\n" . $herecurr);
}
+
+ # Do not disable fdt / initrd relocation
+ if ($rawline =~ /.*(fdt|initrd)_high=0xffffffff/) {
+ ERROR("DISABLE_FDT_OR_INITRD_RELOC",
+ "fdt or initrd relocation disabled at boot time\n" . $herecurr);
+ }
}
sub process {