diff options
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | 2021-12-15 14:23:52 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-14 12:26:42 -0500 |
commit | f3d3931026942cb7dfbef01c714d6116302825df (patch) | |
tree | 635d42f7f6b92b9a09ed5a595dc0ce42d349c5bd | |
parent | 3ec8b4571b67db0094be95f77e49036cad1ef812 (diff) | |
download | u-boot-f3d3931026942cb7dfbef01c714d6116302825df.zip u-boot-f3d3931026942cb7dfbef01c714d6116302825df.tar.gz u-boot-f3d3931026942cb7dfbef01c714d6116302825df.tar.bz2 |
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>
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5696d3a..cf59e2b 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); } |