From: Hou Zhiqiang Date: Wed, 15 Dec 2021 06:23:52 +0000 (+0800) Subject: checkpatch: report ERROR only on disabling of fdt and initrd relocation X-Git-Tag: v2025.01-rc5-pxa1908~1583^2~8 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=2f3e8d6a86cbeb45d387d47fa71220885ed7e481;p=u-boot.git 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 --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5696d3a5f3..cf59e2bb70 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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); }