From: Lars Feyaerts Date: Mon, 2 Oct 2023 08:00:13 +0000 (+0200) Subject: checkpatch: skip fdtdec_* check for tools X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=814774c07617465f735644fb4f6352a4e50fb286;p=u-boot.git checkpatch: skip fdtdec_* check for tools Have checkpatch.pl skip warnings for use of fdtdec_* functions in ooling; livetree isn't used there. Signed-off-by: Lars Feyaerts Reviewed-by: Simon Glass --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 62b764f6c3..488d73a0ed 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2606,8 +2606,8 @@ sub u_boot_line { "Possible new uclass - make sure to add a sandbox driver, plus a test in test/dm/.c\n" . $herecurr); } - # try to get people to use the livetree API - if ($line =~ /^\+.*fdtdec_/) { + # try to get people to use the livetree API, except when changing tooling + if ($line =~ /^\+.*fdtdec_/ && $realfile !~ /^tools\//) { WARN("LIVETREE", "Use the livetree API (dev_read_...)\n" . $herecurr); }