summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-05-26 14:19:28 -0600
committerTom Rini <[email protected]>2026-06-17 14:06:48 -0600
commit487994d65cf305e943e4fd4efb56283f214f0611 (patch)
treeced5b1aec7321ed9fe85fc1b9ddf543d5b2fe430
parent37fef5ab88d1134fd6b8b53090e0bfa442732e24 (diff)
dtc: libfdt: Introduce a can_assume check in fdt_check_full
The current upstream method of having a function omit various tests is to use the can_assume macro. Take the logic we had previously been using and instead make it a can_assume(PERFECT) check within fdt_check_full itself. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
-rw-r--r--scripts/dtc/libfdt/fdt_check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dtc/libfdt/fdt_check.c b/scripts/dtc/libfdt/fdt_check.c
index a21ebbc9239..7509c11d858 100644
--- a/scripts/dtc/libfdt/fdt_check.c
+++ b/scripts/dtc/libfdt/fdt_check.c
@@ -21,6 +21,8 @@ int fdt_check_full(const void *fdt, size_t bufsize)
const char *propname;
bool expect_end = false;
+ if (can_assume(PERFECT))
+ return 0;
if (bufsize < FDT_V1_SIZE)
return -FDT_ERR_TRUNCATED;
if (bufsize < fdt_header_size(fdt))