diff options
| author | Lars Feyaerts <[email protected]> | 2023-10-02 10:00:13 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-10-11 10:35:24 -0400 |
| commit | 814774c07617465f735644fb4f6352a4e50fb286 (patch) | |
| tree | fdd15c08484506293fdc0aedafbc240456b95957 /scripts/checkpatch.pl | |
| parent | 5ae883c7160cf8b0604ec6d03798dd90fc81ee38 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 62b764f6c38..488d73a0ed7 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); } |
