All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] checkpatch: report ERROR only on disabling of fdt and initrd relocation
@ 2021-12-15  6:23 Zhiqiang Hou
  2022-01-15 12:37 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Zhiqiang Hou @ 2021-12-15  6:23 UTC (permalink / raw)
  To: u-boot, trini; +Cc: Hou Zhiqiang

From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Let the check pass when patches have these patterns in their context.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] checkpatch: report ERROR only on disabling of fdt and initrd relocation
  2021-12-15  6:23 [PATCH] checkpatch: report ERROR only on disabling of fdt and initrd relocation Zhiqiang Hou
@ 2022-01-15 12:37 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-01-15 12:37 UTC (permalink / raw)
  To: Zhiqiang Hou; +Cc: u-boot

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

On Wed, Dec 15, 2021 at 02:23:52PM +0800, Zhiqiang Hou wrote:

> From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> 
> Let the check pass when patches have these patterns in their context.
> 
> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-15 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15  6:23 [PATCH] checkpatch: report ERROR only on disabling of fdt and initrd relocation Zhiqiang Hou
2022-01-15 12:37 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.