projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17ab6e
)
checkpatch: report ERROR only on disabling of fdt and initrd relocation
author
Hou Zhiqiang
<Zhiqiang.Hou@nxp.com>
Wed, 15 Dec 2021 06:23:52 +0000
(14:23 +0800)
committer
Tom Rini
<trini@konsulko.com>
Fri, 14 Jan 2022 18:16:11 +0000
(13:16 -0500)
Let the check pass when patches have these patterns in their context.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index
5696d3a
..
cf59e2b
100755
(executable)
--- 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);
}