mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
checkpatch: report ERROR only on disabling of fdt and initrd relocation
Let the check pass when patches have these patterns in their context. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
This commit is contained in:
parent
d17ab6e128
commit
2f3e8d6a86
1 changed files with 1 additions and 1 deletions
|
@ -2617,7 +2617,7 @@ sub u_boot_line {
|
|||
}
|
||||
|
||||
# Do not disable fdt / initrd relocation
|
||||
if ($rawline =~ /.*(fdt|initrd)_high=0xffffffff/) {
|
||||
if ($rawline =~ /^\+.*(fdt|initrd)_high=0xffffffff/) {
|
||||
ERROR("DISABLE_FDT_OR_INITRD_RELOC",
|
||||
"fdt or initrd relocation disabled at boot time\n" . $herecurr);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue