aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLars Feyaerts <lars@bitbiz.be>2023-10-02 10:00:13 +0200
committerTom Rini <trini@konsulko.com>2023-10-11 10:35:24 -0400
commit814774c07617465f735644fb4f6352a4e50fb286 (patch)
treefdd15c08484506293fdc0aedafbc240456b95957 /scripts
parent5ae883c7160cf8b0604ec6d03798dd90fc81ee38 (diff)
downloadu-boot-814774c07617465f735644fb4f6352a4e50fb286.zip
u-boot-814774c07617465f735644fb4f6352a4e50fb286.tar.gz
u-boot-814774c07617465f735644fb4f6352a4e50fb286.tar.bz2
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 <lars@bitbiz.be> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 62b764f..488d73a 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/<name>.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);
}